From 9ad6820169d1447e71bf08c29a3a9a168fcf4c0e Mon Sep 17 00:00:00 2001 From: Thomas Schneider <qsx@chaotikum.eu> Date: Tue, 7 Apr 2020 20:46:35 +0200 Subject: [PATCH] webserver/proxy: Allow overriding proxy_http_version This is needed for WebSocket --- webserver/templates/locations/proxy.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webserver/templates/locations/proxy.conf b/webserver/templates/locations/proxy.conf index af94689..06a76a3 100644 --- a/webserver/templates/locations/proxy.conf +++ b/webserver/templates/locations/proxy.conf @@ -35,6 +35,9 @@ proxy_cookie_path / "/; Secure; HttpOnly; SameSite=Lax"; {% endif %} {% endif %} + {% if location.proxy_http_version is defined %} + proxy_http_version {{location.proxy_http_version}}; + {% endif %} {% if location.proxy_headers is defined %} {% for key, value in location.proxy_headers.items() %} -- GitLab