public-access-proxy: fix haproxy conf syntax

This commit is contained in:
Astro 2020-12-03 16:52:12 +01:00
parent 3475c13a56
commit e66639bad9
1 changed files with 4 additions and 4 deletions

View File

@ -89,8 +89,8 @@ in {
mode http
option http-server-close
option forwardfor
http-request add-header X-Forwarded-Proto:\ http
http-request add-header X-Forwarded-Port:\ 80
http-request set-header X-Forwarded-Proto http
http-request set-header X-Forwarded-Port 80
${concatMapStringsSep "\n" (proxyHost:
optionalString (proxyHost.hostNames != [] && proxyHost.proxyTo.host != null) (
concatMapStringsSep "\n" (hostname: ''
@ -112,8 +112,8 @@ in {
timeout check 5000
timeout server 30000
option http-server-close
http-request add-header X-Forwarded-Proto:\ https
http-request add-header X-Forwarded-Port:\ 443
http-request set-header X-Forwarded-Proto https
http-request set-header X-Forwarded-Port 443
${concatMapStringsSep "\n" (proxyHost:
optionalString (proxyHost.hostNames != [] && proxyHost.proxyTo.host != null) (
concatMapStringsSep "\n" (hostname: ''