public-access-proxy: fix haproxy conf syntax
This commit is contained in:
parent
3475c13a56
commit
e66639bad9
|
@ -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: ''
|
||||
|
|
Loading…
Reference in New Issue