From 4b05b3ead3669b5cb649215cd45a95807606b2c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20V=C3=B6lker?= Date: Wed, 8 Jun 2022 16:56:14 +0200 Subject: [PATCH] allow ACLs in stats --- templates/etc/haproxy/haproxy-stats.cfg.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/etc/haproxy/haproxy-stats.cfg.j2 b/templates/etc/haproxy/haproxy-stats.cfg.j2 index 0c69005..788ed61 100644 --- a/templates/etc/haproxy/haproxy-stats.cfg.j2 +++ b/templates/etc/haproxy/haproxy-stats.cfg.j2 @@ -10,6 +10,11 @@ listen stats {% endif %} mode http maxconn 10 +{% if haproxy_stats_acls is defined and haproxy_stats_acls|length %} + {% for acl in haproxy_stats_acls %} + acl {{ acl }} + {% endfor %} +{% endif %} stats enable {% for opt in haproxy_stats_options %} stats {{ opt }}