From 8719452dadb88890afc15bd6bce70ba15726e638 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sun, 23 Oct 2022 18:24:13 +0200 Subject: [PATCH] Fixed nginx #70 --- kdb-web/nginx.conf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/kdb-web/nginx.conf b/kdb-web/nginx.conf index 10b6aac9ea..caca7c4781 100644 --- a/kdb-web/nginx.conf +++ b/kdb-web/nginx.conf @@ -24,7 +24,7 @@ http { } location /api { - proxy_pass http://kdb_bot_prod_1; + proxy_pass http://kdb_bot_staging_1; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; @@ -32,5 +32,13 @@ http { proxy_cache_bypass $http_upgrade; proxy_redirect off; } + + location /api/socket.io { + proxy_http_version 1.1; + proxy_buffering off; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_pass http://kdb_bot_staging_1/api/socket.io; + } } }