Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thesabbir/node-nginx
A simple command-line tool to create & manage ngninx proxy/virtualhost configuaration for node.js based app
https://github.com/thesabbir/node-nginx
Last synced: 30 days ago
JSON representation
A simple command-line tool to create & manage ngninx proxy/virtualhost configuaration for node.js based app
- Host: GitHub
- URL: https://github.com/thesabbir/node-nginx
- Owner: thesabbir
- Created: 2013-12-27T22:11:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-10-04T17:15:58.000Z (about 8 years ago)
- Last Synced: 2023-04-09T10:55:17.820Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 18
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Node -Nginx
------------
**A simple command-line tool to create & manage ngninx proxy/virtualhost configuaration for node.js based app**
****##Installation
```
$ git clone https://github.com/thesabbir/node-nginx.git node-nginx
$ cd node-nginx
$ npm install -d
$ ln -s /path/to/node-nginx.js /usr/local/bin/nodenginx
```
`note : please edit your 'config.json' file according to your nginx.conf directory`###Options
```
-h, --help output usage information
-V, --version output the version number
-n, --name [name] Specify a domain name / Server Name
-p, --port [port] Port number where your node app is running
-P, --sport [sport] Port where your sever will listening (Default 80)
-e, --enabled List enabled sites
-a, --available List available sites
```###Usage
```
$ nodenginx -n [domain] -p [port] -P [server-port]
```###Example
```
$ nodenginx -n example.com -p 8080 -P 80
```###For help
```
$ nodenginx --help```
**TODO : Automated installation**