Skip to content

Commit

Permalink
HAProxy Router: Add option to use PROXY protocol
Browse files Browse the repository at this point in the history
Configure HAProxy to expect incoming connections on port 443 to use the
PROXY protocol if the ROUTER_USE_PROXY_PROTOCOL environment variable is set
to "true" or "TRUE".

This commit fixes bug 1385421.

https://bugzilla.redhat.com/show_bug.cgi?id=1385421
  • Loading branch information
Miciah committed Dec 15, 2016
1 parent 039e433 commit 24c5ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/router/haproxy/conf/haproxy-config.template
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ frontend public
# determined by the next backend in the chain which may be an app backend (passthrough termination) or a backend
# that terminates encryption in this router (edge)
frontend public_ssl
bind :{{env "ROUTER_SERVICE_HTTPS_PORT" "443"}}
bind :{{env "ROUTER_SERVICE_HTTPS_PORT" "443"}}{{ if matchPattern "true|TRUE" (env "ROUTER_USE_PROXY_PROTOCOL" "") }} accept-proxy{{ end }}
tcp-request inspect-delay 5s
tcp-request content accept if { req_ssl_hello_type 1 }

Expand Down

0 comments on commit 24c5ba0

Please sign in to comment.