Hey there,
I’m glad you liked my article! Take a look at the nginx configuration in the nginx-certbot repository. Nginx is configured differently for port 80; it only accepts Let’s Encrypt requests and redirects everything else to port 443.
And when you run init-letsencrypt.sh
, it creates a dummy certificiate, thus allowing nginx to start and avoid the chicken-egg problem.