Skip to content

A simple command-line tool to create & manage ngninx proxy/virtualhost configuaration for node.js based app

Notifications You must be signed in to change notification settings

thesabbir/node-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

A simple command-line tool to create & manage ngninx proxy/virtualhost configuaration for node.js based app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published