server { server_name olivetin.mydomain.com; listen 8443 ssl; listen 443 ssl; access_log /var/log/nginx/olivetin.mydomain.com_access_log main; error_log /var/log/nginx/olivetin.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://localhost:1337/; proxy_redirect http://localhost:1337/ http://localhost/OliveTin/; } location /websocket { include "com.mydomain/authelia_proxy.conf"; include "com.mydomain/authelia_authrequest.conf"; proxy_set_header Upgrade "websocket"; proxy_set_header Connection "upgrade"; proxy_pass http://localhost:1337/websocket; } include com.mydomain/certbot.conf; }