haproxy: simplify syntax fos stats section

This commit is contained in:
Jérémy Lecour 2020-06-14 23:19:40 +02:00 committed by Jérémy Lecour
parent ac4ef5ff96
commit 01a486b20a

View file

@ -51,12 +51,8 @@ listen stats
stats uri /
stats show-legends
stats show-node
stats admin if { src -f /etc/haproxy/stats_admin_ips }
acl stats_access_ips src -f /etc/haproxy/stats_access_ips
http-request deny if !stats_access_ips
acl stats_admin_ips src -f /etc/haproxy/stats_admin_ips
stats admin if stats_admin_ips
http-request deny if !{ src -f /etc/haproxy/stats_access_ips }
http-request set-log-level silent
{% endif %}