Skip to content

Commit

Permalink
Merge pull request #251 from vlaza/release-0.6
Browse files Browse the repository at this point in the history
added "httponly" for cookie affinity
  • Loading branch information
jcmoraisjr authored Nov 9, 2018
2 parents 118285b + 50f6582 commit 54e261a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/haproxy/template/haproxy.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 54e261a

Please sign in to comment.