A cli tool to quickly create and manage nginx server blocks. https://up.js.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.6 KiB

7 years ago
<br /><br /><br /><br /><br />
7 years ago
<p alt="up—quick server blocks in one command" align="center"><img height="80"src="assets/icon.png"></p>
7 years ago
<p align="center">quick <em>nginx</em> server blocks in one command</p>
7 years ago
7 years ago
<br /><br /><br /><br /><br />
7 years ago
7 years ago
# up
> Current version: `up v.0.1.0 (Pre-Alpha)`
> Notes: `up` has landed in pre-alpha! 🎉 Changelog will be added from `up v.0.2.0` [(Alpha/MVP)](Roadmap.md)\
> ⚠️ ❌ `up` is still not ready for use yet! Do not attempt to use this in development or production until alpha!
7 years ago
**`up`** is a command line application that creates nginx server blocks quickly with a single command.
7 years ago
7 years ago
## Installation
As of now, `up` only supports Debian and Ubuntu based distros. Support for more distros will come soon. Add an issue to bump this process.
7 years ago
You will need to have [_node JS_](https://nodejs.org) and [_nginx_](https://nginx.org) installed.
> ⚠️ ❌ `up` is not published on npm because it's still in development. If you intend to install it for development, follow these instructions:
`git clone https://github.com/codefeathers/up-serve`
`cd up-serve`
7 years ago
`npm install`
7 years ago
`npm install -g`
7 years ago
> `up` is now available as a command.
7 years ago
## Commands
`up static <domain>` - Create new static server at current folder.
`up proxy <domain> <port>` - Create new proxy server listening at said port.
`up list` - List currently available servers.
`up kill <domain>` - Kill the server for this domain.
## Examples
`up static example.com` will serve a static website from current folder.
7 years ago
`up proxy example.com 8081` will create a reverse proxy listening at port 8081.