do not drop websocket connections
This commit is contained in:
@@ -15,6 +15,15 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header Upgrade $http_upgrade; # Forward Upgrade header
|
proxy_set_header Upgrade $http_upgrade; # Forward Upgrade header
|
||||||
proxy_set_header Connection $http_connection; # Forward Connection header
|
proxy_set_header Connection $http_connection; # Forward Connection header
|
||||||
|
|
||||||
|
# Ensure the connection stays open indefinitely on websockets
|
||||||
|
proxy_read_timeout $http_upgrade websocket 3600s;
|
||||||
|
proxy_send_timeout $http_upgrade websocket 3600s;
|
||||||
|
|
||||||
|
proxy_connect_timeout 60s;
|
||||||
|
|
||||||
|
# Disable buffering for real-time traffic
|
||||||
|
proxy_buffering off;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user