diff --git a/Deployment/nginx.conf b/Deployment/nginx.conf index b88719230..00e39ffc4 100644 --- a/Deployment/nginx.conf +++ b/Deployment/nginx.conf @@ -28,7 +28,7 @@ http { } upstream docker-websocket { - server storage:8097; + server websocket:8097; } proxy_set_header Host $host; @@ -76,7 +76,12 @@ http { location /stream { proxy_pass http://docker-websocket; - rewrite ^/stream/(.*)$ /$1 break; + # WS config + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + ########### + rewrite ^/stream(.*)$ $1 break; } location /api {