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 Gitea
parent d9f8c4fc89
commit 17b49ccc3d
1 changed files with 2 additions and 6 deletions

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 %}