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.
|
|
8 years ago | |
|---|---|---|
| .vscode | 8 years ago | |
| actions | 8 years ago | |
| assets | 8 years ago | |
| build | 8 years ago | |
| docs | 8 years ago | |
| utils | 8 years ago | |
| .eslintrc.json | 8 years ago | |
| .gitignore | 8 years ago | |
| CODE_OF_CONDUCT.md | 8 years ago | |
| Contributing.MD | 8 years ago | |
| LICENSE | 8 years ago | |
| README.md | 8 years ago | |
| cli.js | 8 years ago | |
| lib.js | 8 years ago | |
| package-lock.json | 8 years ago | |
| package.json | 8 years ago | |
README.md
![]()
quick nginx server blocks in one command
up
Current version:
up v.0.2.1 (Alpha)
Notes:
upis now in Alpha! 🎉 (Changelog)
⚠️ ❌upis pretty useable so far. If you're testingupon a development server, do give us feedback.
up is a command line application that creates nginx server blocks quickly with a single command.
Installation
up currently supports nginx mainline and nginx stable on Linux based distros. Support for more distros will come soon. Add an issue to bump this process.
You will need to have node JS and nginx installed.
Install up from npm:
npm i -g up-serve
upis now available as a command.
Basic Commands
Format: up command <required> [optional]
up static <domain> [outbound port]- Create new static server at current folder.up proxy <domain> <inbound port> [outbound 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.comwill serve a static website from current folder.up proxy example.com 8081will create a reverse proxy listening at port 8081.up kill example.com