This script allows you to quickly install the latest version of Nginx web server, configure wildcard domain routing, install a secure ssl wildcard certificate through Let's Encrypt. This installation has been tested on Ubuntu 16.04 and Nginx 1.15.11.
Based on Nginx Server Configs.
./bin/install-nginx.sh
./bin/install-docker.sh
./bin/install-configurations.sh <base_domain_name>
The following files will be created:
/etc/nginx
|- server-configs-nginx // base configurations from h5bp
|- base // bash nginx configurations
|- conf.d
| |- default.conf
| |- wildcard.conf
|- nginx.conf
./bin/install-ssl.sh <base_domain_name>
The following files will be created:
/etc/letsencrypt
|- live
|- options-ssl-nginx.conf
|- ssl-dhparams.pem