Added cookie support for haproxy
This commit is contained in:
@@ -38,7 +38,9 @@ frontend www-https
|
||||
backend wrestlingdev
|
||||
redirect scheme https if !{ ssl_fc }
|
||||
balance roundrobin
|
||||
option redispatch
|
||||
option httpclose
|
||||
cookie SERVERID insert indirect nocache
|
||||
{% for web_server in groups['web'] %}
|
||||
server {{ hostvars[web_server]['ansible_eth1']['ipv4']['address'] }} {{ hostvars[web_server]['ansible_eth1']['ipv4']['address'] }}:443 check cookie {{ hostvars[web_server]['ansible_eth1']['ipv4']['address'] }} ssl verify none
|
||||
server {{ hostvars[web_server]['ansible_eth1']['ipv4']['address'] }} {{ hostvars[web_server]['ansible_eth1']['ipv4']['address'] }}:443 check cookie A ssl verify none
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user