Skip to content

Commit

Permalink
default-server option is also vlid in listen
Browse files Browse the repository at this point in the history
  • Loading branch information
magenbrot committed Jun 10, 2022
1 parent 9487e70 commit 937967f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ haproxy_listen:
mode: http
description: Horizon Dashboard
balance: roundrobin
default_server: "inter 2s downinter 5s rise 3 fall 2 slowstart 30s maxconn 30 maxqueue 64 weight 100"
binds:
- 10.0.0.100:80
binds_ssl:
Expand Down
3 changes: 3 additions & 0 deletions templates/etc/haproxy/haproxy-listen.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
listen {{ name }}
{% if value.mode is defined %}
mode {{ value.mode }}
{% endif %}
{% if value.default_server is defined %}
default-server {{ value.default_server }}
{% endif %}
{% if value.description is defined %}
description {{ value.description }}
Expand Down

0 comments on commit 937967f

Please sign in to comment.