Setup:
- Fill in your DNS Name in the nginx.conf file where it says <DNS NAME HERE (i.e. data.internet.net)>.
- In the Cloudflare dashboard go to SSL/TLS -> Origin Server and Create Certificate.
- Enable Authenticated Origin Pulls on the same page.
- Switch SSL to Full (Strict) security.
- Copy the certificate into the directory as
your_site_crt_file.crt
. - Copy the certificate key into the directory as
your_site_crt_file.key
. - Run the bash script.