]> Untitled Git - proxy.git/commitdiff
Added WS magic
authorClifton Palmer <clifton.james.palmer@protonmail.com>
Tue, 10 Oct 2023 13:02:32 +0000 (08:02 -0500)
committerClifton Palmer <clifton.james.palmer@protonmail.com>
Tue, 10 Oct 2023 13:02:32 +0000 (08:02 -0500)
proxy/nginx.conf

index 0c5954b73b452c56f2795428af4b6c40bf7cad43..73ba4027ec833edeeeb6f574f84e912c3ff158a3 100644 (file)
@@ -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;