Added websocket support in the nginx template for docker

This commit is contained in:
Muhammad Ibrahim
2025-10-20 18:45:16 +01:00
parent 7b8c29860c
commit af9b0d5d76

View File

@@ -61,6 +61,14 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
# For the Websocket connection:
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_cache_bypass $http_upgrade;
proxy_read_timeout 300s;
proxy_connect_timeout 75s;
# Preserve original client IP through proxy chain
proxy_set_header X-Original-Forwarded-For $http_x_forwarded_for;