Skip to content

Commit

Permalink
Merge pull request #63 from magenbrot/add-default-server-option
Browse files Browse the repository at this point in the history
default-server option is also valid in 'listen'
  • Loading branch information
goldyfruit authored Jun 15, 2022
2 parents 9487e70 + 937967f commit a09ba4c
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 a09ba4c

Please sign in to comment.