forked from exozyme/nginx
1
0
Fork 0
nginx/cockpit.conf

23 lines
644 B
Plaintext

server {
listen 443 ssl;
listen [::]:443 ssl;
server_name portal.exozy.me;
location / {
# Required to proxy the connection to Cockpit
proxy_pass https://localhost:9090;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
# Required for web sockets to function
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Pass ETag header from Cockpit to clients.
# See: https://github.com/cockpit-project/cockpit/issues/5239
gzip off;
}
}