From ca572e1f5304aeba3daf6e32fe6a6522d25a5e83 Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Wed, 24 Apr 2019 17:54:09 +0200 Subject: Add config for websockets --- templates/nginx.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates') 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 %} } -- cgit 1.4.1