worker_processes 1;
user root;

events {
    worker_connections 1024;
}

http {
    server {
        listen 80;
# IPv6 is not used so comment it by now
# This will prevent faults on hosts where IPv6 is not available
#        listen [::]:80;
        server_name .{{ hostname }};

        # LetsEncrypt ACME challenge path
        location ~ /.well-known/acme-challenge {
            allow all;
            root /var/www/certbot;
        }
    }
}
