empyrean: why are websockets? just to suffer?

This commit is contained in:
Jaculabilis 2025-03-11 04:46:57 +00:00
parent 5b3df0cfcb
commit f8b33bb541

View File

@ -107,10 +107,23 @@
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://10.22.20.8:2283";
locations."/api/socket.io" = {
proxyPass = "http://10.22.20.8:2283";
extraConfig = ''
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
'';
};
extraConfig = ''
client_max_body_size 50000M;
# enable mTLS
ssl_verify_client on;
ssl_client_certificate /etc/nginx/client-ca.crt;
# other proxy settings
proxy_read_timeout 600s;
proxy_send_timeout 600s;
send_timeout 600s;
access_log /var/log/nginx/access_immich.log;
'';
};
# mirror revproxy