From 937967f5ee423c1f19443b2e56ecad44b519e70f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20V=C3=B6lker?= Date: Fri, 10 Jun 2022 12:38:10 +0200 Subject: [PATCH] default-server option is also vlid in listen --- README.md | 1 + templates/etc/haproxy/haproxy-listen.cfg.j2 | 3 +++ 2 files changed, 4 insertions(+) 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 }}