We first create an include file that we'll share between all the domains
in /etc/nginx/conf.d/acme
:
# Allow access to the ACME Challenge for Let's Encrypt
location ^~ /.well-known/acme-challenge {
allow all;
alias /usr/share/nginx/html/.well-known/acme-challenge;
}