Add headers for Websocket

This commit is contained in:
Stefan Bethke 2025-05-30 10:33:25 +02:00
commit e827005059

View file

@ -26,7 +26,9 @@ server {
# is transparent).
# Also provide "_hidden" for by, since it's not relevant.
proxy_set_header Forwarded "for=$remote_addr;proto=https;host=$host;by=_hidden";
proxy_intercept_errors off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
location / {
proxy_pass http://127.0.0.1:3000/;