server { server_name romm.mydomain.com; listen 8443 ssl; # managed by Certbot listen 443 ssl; # managed by Certbot client_max_body_size 50000M; large_client_header_buffers 4 32k; access_log /var/log/nginx/romm.mydomain.com_access_log main; error_log /var/log/nginx/romm.mydomain.com_error_log info; include "com.mydomain/authelia_location-basic.conf"; location / { proxy_pass http://127.0.0.1:2280/; include "com.mydomain/authelia_proxy.conf"; include "com.mydomain/authelia_authrequest-basic.conf"; proxy_set_header Connection $http_connection; proxy_set_header Upgrade $http_upgrade; } include com.mydomain/certbot.conf; }