From 8cbfa18e85ea1b9aa367045680fa41a602588d2c Mon Sep 17 00:00:00 2001 From: AbId KhAn Date: Tue, 19 Dec 2023 14:28:46 +0000 Subject: [PATCH 1/2] fix websocket connection issue in docker makeplane/plane#3195 --- nginx/nginx.conf.template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx/nginx.conf.template b/nginx/nginx.conf.template index 4775dcbfad..0fd4efa6f0 100644 --- a/nginx/nginx.conf.template +++ b/nginx/nginx.conf.template @@ -18,6 +18,9 @@ http { location / { proxy_pass http://web:3000/; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; } location /api/ { From a4fcd223d085dbb828170d1cd428241717ce38dc Mon Sep 17 00:00:00 2001 From: AbId KhAn Date: Wed, 20 Dec 2023 13:47:52 +0000 Subject: [PATCH 2/2] fix websocket connection issue for local env with removing from the prod nginx conf template makeplane/plane#319 --- nginx/nginx.conf.dev | 3 +++ nginx/nginx.conf.template | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nginx/nginx.conf.dev b/nginx/nginx.conf.dev index c78893f9fe..182fc4d83f 100644 --- a/nginx/nginx.conf.dev +++ b/nginx/nginx.conf.dev @@ -18,6 +18,9 @@ http { location / { proxy_pass http://web:3000/; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; } location /api/ { diff --git a/nginx/nginx.conf.template b/nginx/nginx.conf.template index 0fd4efa6f0..4775dcbfad 100644 --- a/nginx/nginx.conf.template +++ b/nginx/nginx.conf.template @@ -18,9 +18,6 @@ http { location / { proxy_pass http://web:3000/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; } location /api/ {