We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46eb061 commit dbf1700Copy full SHA for dbf1700
ansible/roles/haproxy/templates/haproxy.cfg.j2
@@ -37,6 +37,12 @@ listen prometheus
37
{% if enable_alertmanager | bool %}
38
listen alertmanager
39
bind {{ ansitheus_vip_address }}:{{ alertmanager_port }}
40
+ option httpchk GET /-/ready
41
+{% if alertmanager_web_config is defined and alertmanager_web_config.basic_auth_users | length > 0 %}
42
+ http-check expect status 401
43
+{% else %}
44
+ http-check expect status 200
45
+{% endif %}
46
http-request del-header X-Forwarded-Proto
47
http-request set-header X-Forwarded-Proto https if { ssl_fc }
48
{% for host in groups['alertmanager'] %}
0 commit comments