Skip to content

Commit 37869a7

Browse files
committed
uselagoon#824 - if x-lagoon not present, add the haproxy cfgid first, prepend haproxy hostname to x-lagoon always
1 parent 6aadfda commit 37869a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openshift-setup/router-template.cfg

+2-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,8 @@ backend be_secure:{{$cfgIdx}}
409409

410410
{{/* set X-LAGOON header if it is not already */}}
411411
acl h_xlagoon_exists res.hdr(X-LAGOON) -m found
412-
http-response set-header X-LAGOON {{env "HOSTNAME" }}>{{$cfgIdx}} unless h_xlagoon_exists
412+
http-response set-header X-LAGOON {{$cfgIdx}} unless h_xlagoon_exists
413+
http-response replace-value X-LAGOON (.*) {{env "HOSTNAME"}}>\1
413414

414415
{{- if matchPattern "(v4)?v6" $router_ip_v4_v6_mode }}
415416
# See the quoting rules in https://tools.ietf.org/html/rfc7239 for IPv6 addresses (v4 addresses get translated to v6 when in hybrid mode)

0 commit comments

Comments
 (0)