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):