❤️ Consider using jonasal/nginx-certbot for the HTTP-01 challenge. See here for the benefits and drawbacks of each challenge type.
Usage:
- Forward ports
80
and443
, and route a subdomain to your server. - Create
cloudflare.ini
with your API token. Usechmod 600 cloudflare.ini
to fix its permissions. - Change
example.com
indocker-compose.yml
andconf.d/default.conf
. Also change the email and subdomain, if you want. - Run
docker-compose up
and wait for nginx to start. If it is successful, you can visit your subdomain.