]> Untitled Git - proxy.git/blobdiff - proxy/nginx.conf
Added WS magic
[proxy.git] / 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;