From 3e5cc0b7fb8ae4a0f8b7c9270d9db0a0f252c448 Mon Sep 17 00:00:00 2001 From: Alex W Date: Mon, 3 Jun 2024 05:54:07 +0100 Subject: reverse-proxy: T6434: Support additional healthcheck options (#3574) --- data/templates/load-balancing/haproxy.cfg.j2 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'data') diff --git a/data/templates/load-balancing/haproxy.cfg.j2 b/data/templates/load-balancing/haproxy.cfg.j2 index b786a58f8..c6027e09b 100644 --- a/data/templates/load-balancing/haproxy.cfg.j2 +++ b/data/templates/load-balancing/haproxy.cfg.j2 @@ -131,6 +131,13 @@ frontend {{ front }} {% if backend is vyos_defined %} {% for back, back_config in backend.items() %} backend {{ back }} +{% if back_config.health_check is vyos_defined %} +{% if back_config.health_check == 'smtp' %} + option smtpchk +{% else %} + option {{ back_config.health_check }}-check +{% endif %} +{% endif %} {% if back_config.http_check is vyos_defined %} option httpchk {% endif %} -- cgit v1.2.3