Skip to content

Commit 61693d6

Browse files
author
Florian Wolpert
authored
place acl rules in front of monitor rules
to use a named ACL in a monitor condition, it should be placed before the monitor definition
1 parent c4944f0 commit 61693d6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

templates/frontend.cfg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ frontend {{ item.name }} {%if item.ip is defined %}{{ item.ip }}{% endif %}{%if
2424
{% endfor %}
2525
{% endif -%}
2626

27+
{%- if item.acl is defined -%}
28+
{%- for acl in item.acl -%}
29+
acl {{ acl.name }} {{ acl.condition }}
30+
{% endfor -%}
31+
{% endif -%}
32+
2733
{%- if item.monitor is defined -%}
2834
{% if item.monitor.uri is defined -%}
2935
monitor-uri {{ item.monitor.uri }}
@@ -35,12 +41,6 @@ frontend {{ item.name }} {%if item.ip is defined %}{{ item.ip }}{% endif %}{%if
3541
{% endif %}
3642
{% endif -%}
3743

38-
{%- if item.acl is defined -%}
39-
{%- for acl in item.acl -%}
40-
acl {{ acl.name }} {{ acl.condition }}
41-
{% endfor -%}
42-
{% endif -%}
43-
4444
{%- if item.capture is defined -%}
4545
{%- for capture in item.capture -%}
4646
capture {{ capture }}

0 commit comments

Comments
 (0)