Commit fbd54adb authored by Jocelyn Delalande's avatar Jocelyn Delalande

nginx: add a reverse-proxy-websocket site type

parent db31a2cf
......@@ -67,10 +67,15 @@ server {
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_pass {{ location.target }};
{% elif location.type == 'reverse-proxy' %}
{% elif location.type in ('reverse-proxy', 'reverse-proxy-websocket') %}
proxy_pass {{ location.target }};
proxy_set_header Host $host;
{% if location.type == 'reverse-proxy-websocket' %}