From c1f3a0c82b836fed3836091a9fddaed9f654829b Mon Sep 17 00:00:00 2001 From: Stefan Wagner Date: Thu, 30 Jan 2025 15:43:42 +0100 Subject: [PATCH] fix: enhance WebSocket protocol handling for secure domains --- nginx.http.conf.template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx.http.conf.template b/nginx.http.conf.template index 1a8407d..864872d 100644 --- a/nginx.http.conf.template +++ b/nginx.http.conf.template @@ -8,6 +8,9 @@ server { location = $BASE_PATH { set $ws_protocol "ws"; + if ($http_host ~ "wandelbots.io") { + set $ws_protocol "wss"; + } if ($scheme = "https") { set $ws_protocol "wss"; }