Fix the ws URL.

This commit is contained in:
Andrea Dell'Amico 2022-04-29 18:49:54 +02:00
parent 63adf53d2a
commit 1ac62259a6
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ server {
client_body_timeout {{ nginx_pep_body_timeout }};
{% if inception_project_websockets_enabled == 'true' %}
location /inception/ws {
location /ws {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
@ -45,6 +45,7 @@ server {
location / {
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_redirect http://{{ inception_project_server_endpoint }}/ /;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Connection ""; # Clear for keepalive
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;