Skip to content

Commit

Permalink
move use_backend below redirect to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
magenbrot committed Jun 15, 2022
1 parent 9487e70 commit 2572528
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/etc/haproxy/haproxy-frontend.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ frontend {{ name }}
{% if value.rate_limit_sessions is defined %}
rate-limit sessions {{ value.rate_limit_sessions }}
{% endif %}
{% if value.use_backends is defined %}
{% for use_backend in value.use_backends %}
use_backend {{ use_backend }}
{% endfor %}
{% endif %}
{% if value.redirects is defined %}
{% for redirect in value.redirects %}
redirect {{ redirect }}
Expand All @@ -108,6 +103,11 @@ frontend {{ name }}
timeout {{ timeout }}
{% endfor %}
{% endif %}
{% if value.use_backends is defined %}
{% for use_backend in value.use_backends %}
use_backend {{ use_backend }}
{% endfor %}
{% endif %}
{% if value.default_backend is defined %}
default_backend {{ value.default_backend }}
{% endif %}
Expand Down

0 comments on commit 2572528

Please sign in to comment.