Fixed nginx #70

This commit is contained in:
Sven Heidemann 2022-10-23 18:24:13 +02:00
parent 24a3a48478
commit 8719452dad

View File

@ -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;
}
}
}