From e7b5537dcc280384470668f461bbb1f7d2f41218 Mon Sep 17 00:00:00 2001 From: Viktor Liu <17948409+lixmal@users.noreply.github.com> Date: Thu, 2 Oct 2025 13:51:39 +0200 Subject: [PATCH] Add websocket paths including relay to nginx template (#4573) --- infrastructure_files/nginx.tmpl.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/infrastructure_files/nginx.tmpl.conf b/infrastructure_files/nginx.tmpl.conf index fbd892c29..46cb195e7 100644 --- a/infrastructure_files/nginx.tmpl.conf +++ b/infrastructure_files/nginx.tmpl.conf @@ -20,6 +20,10 @@ upstream management { # insert the grpc+http port of your management container here server 127.0.0.1:8012; } +upstream relay { + # insert the port of your relay container here + server 127.0.0.1:33080; +} server { # HTTP server config @@ -55,6 +59,10 @@ server { # Proxy Signal wsproxy endpoint location /ws-proxy/signal { proxy_pass http://signal; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $host; } # Proxy Signal location /signalexchange.SignalExchange/ { @@ -71,6 +79,10 @@ server { # Proxy Management wsproxy endpoint location /ws-proxy/management { proxy_pass http://management; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $host; } # Proxy Management grpc endpoint location /management.ManagementService/ { @@ -80,6 +92,14 @@ server { grpc_send_timeout 1d; grpc_socket_keepalive on; } + # Proxy Relay + location /relay { + proxy_pass http://relay; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $host; + } ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem; ssl_certificate_key /etc/ssl/certs/ssl-cert-snakeoil.pem;