diff --git a/README.md b/README.md index 95ea5a3..991e67b 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/templates/etc/haproxy/haproxy-listen.cfg.j2 b/templates/etc/haproxy/haproxy-listen.cfg.j2 index 84fcadd..6326c3d 100644 --- a/templates/etc/haproxy/haproxy-listen.cfg.j2 +++ b/templates/etc/haproxy/haproxy-listen.cfg.j2 @@ -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 }}