We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5444fac + 06cd1d1 commit 87597f4Copy full SHA for 87597f4
images/router/haproxy/conf/haproxy-config.template
@@ -448,7 +448,11 @@ backend be_secure_{{$cfgIdx}}
448
http-request set-header X-Forwarded-Proto https if { ssl_fc }
449
http-request set-header Forwarded for=%[src];host=%[req.hdr(host)];proto=%[req.hdr(X-Forwarded-Proto)]
450
{{ if not (matchPattern "true|TRUE" (index $cfg.Annotations "haproxy.router.openshift.io/disable_cookies")) }}
451
+ {{ if ne $cfg.InsecureEdgeTerminationPolicy "Allow" }}
452
cookie {{$cfg.RoutingKeyName}} insert indirect nocache httponly secure
453
+ {{ else }}
454
+ cookie {{$cfg.RoutingKeyName}} insert indirect nocache httponly
455
+ {{ end }}
456
{{ end }}
457
{{ range $serviceUnitName, $weight := $cfg.ServiceUnitNames }}
458
{{ if ne $weight 0 }}
0 commit comments