Fix Nginx websocket config

This commit is contained in:
Marco Bonelli 2024-05-23 21:51:55 +02:00 committed by ruslandoga
parent ffc883de7e
commit 7d18ea8f5a

View File

@ -8,8 +8,11 @@ server {
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location = /live/websocket {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}
}