Skip to content

Commit 0e697c6

Browse files
authored
Merge pull request #68 from stenstad/master
Add timeouts handling to backend section of template.
2 parents 2f2feec + 5a1d62f commit 0e697c6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

haproxy/templates/haproxy.jinja

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,11 @@ backend {{ backend.get('name', backend_name) }}
472472
{%- if 'balance' in backend %}
473473
balance {{ backend.balance }}
474474
{%- endif %}
475+
{%- if 'timeouts' in backend %}
476+
{%- for timeout in backend.timeouts %}
477+
timeout {{ timeout }}
478+
{%- endfor %}
479+
{%- endif %}
475480
{%- if 'options' in backend %}
476481
{%- if backend.options is string %}
477482
option {{ backend.options }}

0 commit comments

Comments
 (0)