From 7cc74008342d8edbc8bcf2c4c4ecb19b8644eb72 Mon Sep 17 00:00:00 2001 From: Clifton Palmer Date: Tue, 10 Oct 2023 08:02:32 -0500 Subject: [PATCH 1/1] Added WS magic --- proxy/nginx.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/proxy/nginx.conf b/proxy/nginx.conf index 0c5954b..73ba402 100644 --- a/proxy/nginx.conf +++ b/proxy/nginx.conf @@ -16,6 +16,15 @@ http { proxy_pass http://go-web; proxy_set_header Host $host; } + location /ws { + proxy_pass http://go-web; + proxy_set_header Host $host; + + # websocket magic + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + } } server { listen 443 ssl; -- 2.47.2