about summary refs log tree commit diff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/nginx.conf.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2
index 69b8d36..f12b11c 100644
--- a/templates/nginx.conf.j2
+++ b/templates/nginx.conf.j2
@@ -26,6 +26,10 @@ server {
     proxy_set_header  X-Forwarded-Proto $scheme;
     proxy_redirect off;
     proxy_http_version 1.1;
+{% if server.websocket is defined and server.websocket %}
+    proxy_set_header Upgrade $http_upgrade;
+    proxy_set_header Connection "Upgrade";
+{% endif %}
     {% endif %}
   }