server { server_name spotizerr.mydomain.com; listen 443 ssl; http2 on; access_log /var/log/nginx/spotizerr.mydomain.com_access_log main; error_log /var/log/nginx/spotizerr.mydomain.com_error_log info; location / { proxy_pass http://127.0.0.1:7171/; proxy_set_header Connection $http_connection; proxy_set_header Upgrade $http_upgrade; } include com.mydomain/certbot.conf; } server { server_name spotizerr.mydomain.com; listen 443 ssl; http2 on; access_log /var/log/nginx/spotizerr.mydomain.com_access_log main; error_log /var/log/nginx/spotizerr.mydomain.com_error_log info; include "com.mydomain/authelia_location.conf"; location / { include "com.mydomain/authelia_proxy.conf"; include "com.mydomain/authelia_authrequest.conf"; proxy_pass http://127.0.0.1:7171/; proxy_set_header Connection $http_connection; proxy_set_header Upgrade $http_upgrade; } include com.mydomain/certbot.conf; }