From e86c9561d779a4e4a5edfbb8648586c4c2fb8cfa Mon Sep 17 00:00:00 2001 From: Lars Beckers <lars.beckers@rwth-aachen.de> Date: Wed, 23 May 2018 21:50:13 +0200 Subject: [PATCH] webserver: add unix proxy to proxy location --- 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 c792168..649b8f4 100644 --- a/webserver/templates/locations/proxy.conf +++ b/webserver/templates/locations/proxy.conf @@ -21,6 +21,9 @@ {% elif server.port is defined %} proxy_pass http://127.0.0.1:{{server.port}}{% if not location.proxy_relative|default(false) %}/{% endif %}; + {% elif location.proxy_unix is defined %} + + proxy_pass http://unix:{{location.proxy_unix}}; {% else %} proxy_pass http://unix:{{server.socket}}; -- GitLab