server { listen 80; listen [::]:80; server_name {{ coturn_hostnames | join(' ') }}; include snippets/acmetool.conf; location / { return 301 https://$host$request_uri; } } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name {{ coturn_hostnames | join(' ') }}; include snippets/acmetool.conf; include snippets/tls.conf; ssl_certificate {{ x509_certificate_path_fullchain }}; ssl_certificate_key {{ x509_certificate_path_key }}; include snippets/hsts.conf; location / { return 404; } }