public-access-proxy: update haproxy settings to 2.1

This commit is contained in:
Astro 2020-12-03 16:48:28 +01:00
parent dcfa8cda56
commit 3475c13a56
1 changed files with 5 additions and 5 deletions

View File

@ -79,7 +79,7 @@ in {
frontend http-in
bind :::80 v4v6
timeout client 30000
option http-tunnel
option http-keep-alive
default_backend proxy-backend-http
backend proxy-backend-http
@ -89,8 +89,8 @@ in {
mode http
option http-server-close
option forwardfor
reqadd X-Forwarded-Proto:\ http
reqadd X-Forwarded-Port:\ 80
http-request add-header X-Forwarded-Proto:\ http
http-request add-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
reqadd X-Forwarded-Proto:\ https
reqadd X-Forwarded-Port:\ 443
http-request add-header X-Forwarded-Proto:\ https
http-request add-header X-Forwarded-Port:\ 443
${concatMapStringsSep "\n" (proxyHost:
optionalString (proxyHost.hostNames != [] && proxyHost.proxyTo.host != null) (
concatMapStringsSep "\n" (hostname: ''