I have a working Nginx config that:
Performs a hard-redirect (301) from http to https
Additionally, ignores subpaths on http (http://www.example.com/ANY/THING redirects to plain https://example.com)
Serves an application from https
How can I modify the config file so that I can:
Generate the HTTPS certificate with certbot/Let's Encrypt
In 90 days, run
certbot renew
without having to edit the config