Skip to content

Commit

Permalink
Add support for errorfiles in listen and backend blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
darix committed Mar 2, 2022
1 parent e485258 commit 53ab2f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions haproxy/templates/haproxy.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ listen {{ listener.get('name', listener_name) }}
{%- if 'mode' in listener %}
mode {{ listener.mode }}
{%- endif %}
{%- if 'errorfiles' in listener %}
{%- for errorfile_name, errorfile in listener.errorfiles|dictsort %}
errorfile {{ errorfile_name }} {{ errorfile }}
{%- endfor %}
{% endif %}
{%- if 'hashtype' in listener %}
hash-type {{ listener.hashtype }}
{%- endif %}
Expand Down Expand Up @@ -485,6 +490,11 @@ backend {{ backend.get('name', backend_name) }}
{%- if 'mode' in backend %}
mode {{ backend.mode }}
{%- endif %}
{%- if 'errorfiles' in backend %}
{%- for errorfile_name, errorfile in backend.errorfiles|dictsort %}
errorfile {{ errorfile_name }} {{ errorfile }}
{%- endfor %}
{% endif %}
{%- if 'hashtype' in backend %}
hash-type {{ backend.hashtype }}
{%- endif %}
Expand Down

0 comments on commit 53ab2f1

Please sign in to comment.