Skip to content
This repository was archived by the owner on Sep 11, 2022. It is now read-only.

ali92hm/nginx-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nginx Proxy Config

Makes Nginx proxy configuration files. This script automatically generates Nginx configuration files that can act as proxy for node applications.

Usage

Install

You only need to clone this repository on your remote machine.

git clone https://github.com/ali92hm/node-nginx-proxy.git

Execution

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]

Dependencies

Structure

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

License

MIT license

About

generates a simple nginx config

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages