diff --git a/rootfs/etc/haproxy/template/haproxy.tmpl b/rootfs/etc/haproxy/template/haproxy.tmpl index 236d292a5..c448600d5 100644 --- a/rootfs/etc/haproxy/template/haproxy.tmpl +++ b/rootfs/etc/haproxy/template/haproxy.tmpl @@ -98,7 +98,7 @@ backend {{ $backend.Name }} {{- end }} {{- $sticky := $backend.SessionAffinity }} {{- if eq $sticky.AffinityType "cookie" }} - cookie {{ $sticky.CookieSessionAffinity.Name }} {{ $sticky.CookieSessionAffinity.Strategy }} {{ if eq $sticky.CookieSessionAffinity.Strategy "insert" }}indirect nocache{{ end }} dynamic + cookie {{ $sticky.CookieSessionAffinity.Name }} {{ $sticky.CookieSessionAffinity.Strategy }} {{ if eq $sticky.CookieSessionAffinity.Strategy "insert" }}indirect nocache httponly{{ end }} dynamic dynamic-cookie-key "{{ $cfg.CookieKey }}" {{- end }} {{- range $snippet := $backend.ConfigurationSnippet.Backend }}