From 79d39abe95f51cd0e369fef45484dfee26bfb67b Mon Sep 17 00:00:00 2001 From: Gertjan Date: Fri, 6 Dec 2024 15:15:59 +0000 Subject: [PATCH] Attempt at fixing the long wait for WebSocket connection upon boot --- nginx/config/core_dev.conf | 2 ++ nginx/config/core_prod.conf | 1 + 2 files changed, 3 insertions(+) diff --git a/nginx/config/core_dev.conf b/nginx/config/core_dev.conf index be067ad..59637d4 100644 --- a/nginx/config/core_dev.conf +++ b/nginx/config/core_dev.conf @@ -11,6 +11,7 @@ location /js/ { location / { proxy_pass http://node:5173; proxy_set_header Host $host; + proxy_http_version 1.1; proxy_set_header Connection "Upgrade"; proxy_set_header Upgrade $http_upgrade; proxy_set_header X-Real-IP $remote_addr; @@ -20,6 +21,7 @@ location / { location /api/ { proxy_pass http://core:5000; proxy_set_header Host $host; + proxy_http_version 1.1; proxy_set_header Connection "Upgrade"; proxy_set_header Upgrade $http_upgrade; proxy_set_header X-Real-IP $remote_addr; diff --git a/nginx/config/core_prod.conf b/nginx/config/core_prod.conf index 43ce77b..832d920 100644 --- a/nginx/config/core_prod.conf +++ b/nginx/config/core_prod.conf @@ -11,6 +11,7 @@ location / { location /api/ { proxy_pass http://core:5000; proxy_set_header Host $host; + proxy_http_version 1.1; proxy_set_header Connection "Upgrade"; proxy_set_header Upgrade $http_upgrade; proxy_set_header X-Real-IP $remote_addr;