File tree 1 file changed +2
-2
lines changed
images/router/haproxy/conf
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ listen stats :1936
96
96
97
97
{{ if .BindPorts }}
98
98
frontend public
99
- bind :{{env "ROUTER_SERVICE_HTTP_PORT" "80"}}
99
+ bind :{{env "ROUTER_SERVICE_HTTP_PORT" "80"}}{{ if matchPattern "true|TRUE" (env "ROUTER_USE_PROXY_PROTOCOL" "") }} accept-proxy{{ end }}
100
100
mode http
101
101
tcp-request inspect-delay 5s
102
102
tcp-request content accept if HTTP
@@ -145,7 +145,7 @@ frontend public
145
145
# determined by the next backend in the chain which may be an app backend (passthrough termination) or a backend
146
146
# that terminates encryption in this router (edge)
147
147
frontend public_ssl
148
- bind :{{env "ROUTER_SERVICE_HTTPS_PORT" "443"}}
148
+ bind :{{env "ROUTER_SERVICE_HTTPS_PORT" "443"}}{{ if matchPattern "true|TRUE" (env "ROUTER_USE_PROXY_PROTOCOL" "") }} accept-proxy{{ end }}
149
149
tcp-request inspect-delay 5s
150
150
tcp-request content accept if { req_ssl_hello_type 1 }
151
151
You can’t perform that action at this time.
0 commit comments