From 06c4d10ca2468ae4bb0de96a6eb08927d9cd6da1 Mon Sep 17 00:00:00 2001 From: SebClem Date: Sat, 14 Sep 2024 16:26:31 +0200 Subject: [PATCH] Health check skip --- plugins/action/load_caddy_config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/action/load_caddy_config.py b/plugins/action/load_caddy_config.py index bcfb435..aa4c800 100644 --- a/plugins/action/load_caddy_config.py +++ b/plugins/action/load_caddy_config.py @@ -216,6 +216,10 @@ class ActionModule(ActionBase): continue upstream = loaded_data.get("upstream") upstream_config = loaded_data.get("upstream_config") + if not uptime_raw_config.get('skip', False): + health_uri = "/" + uptime_raw_config.get("endpoint", "") + else: + health_uri = None if state == "present": results['sites_config'].append({ @@ -225,7 +229,7 @@ class ActionModule(ActionBase): "protected": protected, "whitelist_local": whitelist_local, "tls_cert_dir": tls_cert_dir, - "health_uri": "/" + uptime_raw_config.get("endpoint", "") + "health_uri": health_uri }) if not dns.get("skip", False):