Makes Nginx proxy configuration files. This script automatically generates Nginx configuration files that can act as proxy for node applications.
You only need to clone this repository on your remote machine.
git clone https://github.com/ali92hm/node-nginx-proxy.git
This application needs sudo permissions because the default Nginx configuration is under /etc/nginx/
which requires sudo permissions to be changed.
sudo python nginx-config.py [node-app-name]
You will be prompted with several questions for your configuration scripts such as servers ip addresses, ports, and weight. You can also redirect non-www requests to www.
You can change the default location of the Nginx configuration by passing the following optional parameter.
sudo python nginx-config.py [node-app-name] -nginx-config-path [path-to-nginx-config]
node-nginx-proxy
├── LICENSE-MIT
├── README.md
└── lib
└── nginx-proxy.py - Generator script
- This script will not work under the Windows operating system.
- SSL configuration is not tested.
- Add SSL redirection
- Make an npm module and put on npm