Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chef/cookbooks/haproxy/templates/default/haproxy.cfg.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ listen admin-stats <%= node[:haproxy][:stats][:enabled] ? node[:haproxy][:stats

<% if content[:use_ssl] # http://www.haproxy.com/blog/maintain-affinity-based-on-ssl-session-id/ -%>
# maximum SSL session ID length is 32 bytes.
stick-table type binary len 32 size 30k expire <%= content[:stick][:expire] %>
stick-table type binary len 32 size 30k expire <%= content[:stick] ? content[:stick][:expire] : "32m" %>

acl clienthello req_ssl_hello_type 1
acl serverhello rep_ssl_hello_type 2
Expand Down Expand Up @@ -82,7 +82,7 @@ listen admin-stats <%= node[:haproxy][:stats][:enabled] ? node[:haproxy][:stats
stick match req.cook(<%= cookie %>)
<% end -%>
<% end -%>
<% if content[:stick][:on] -%>
<% if content[:stick] && content[:stick][:on] && !content[:stick][:on].empty? -%>
stick-table type ip size 1
stick on <%= content[:stick][:on] %>
<% end -%>
Expand Down