Just a little script to create Nginx reverse proxy with SSL support. Simply run the script with or without parameters and that's all !
To start, just clone this repo to your /opt folder :
git clone https://github.com/bilyboy785/nginx-reverseproxy-creator.git /opt/nginxreverse && cd /opt/nginxreverse
By default, you can launch the script without parameters :
./nginx-reverse.sh
It will ask you some informations about domain and application port :
You can use parameters when launching the script. Two options are available :
- classic : create a classic reverse proxy with HTTP support (80)
- ssl : create an SSL reverse proxy with HTTPS (443) and auto redirection from 80 to 443
If you choose classic option, here an example :
./nginx-reverse.sh classic app.domain.tld 8888
If you choose SSL reverse, you need to add your email and RSA Key Size, like this :
./nginx-reverse.sh ssl app.domain.tld 8888 contact@domain.tld 2048