This tools has been only tested on :
- Ubuntu 20.04 with nginx 1.18.0
Other version have not been tested.
On first run, this tool create a DH key of 4096 bits for perfect forward secrecy, that can take a (very) long time. Can it be generated with all CPU : check here
- Create www root folder
- Create http configuration
- .well-known folder for Let's Encrypt
- redirect to https
- Create https configuration
- Activate http configuration
- Request Let's Encrypt certificate
- Activate https configuration
- Enjoy !
Don't forget to renew regulary Let's Encrypt certificates. https://certbot.eff.org/docs/using.html#renewing-certificates
./generate.sh [host] [proxy url] [-s (use the staging version to test network)]
Example
./generate.sh foo.bar.com http://bar.foo.com:81