diff --git a/hosts/vps-monitor/default.nix b/hosts/vps-monitor/default.nix index 20b3433..100c50b 100644 --- a/hosts/vps-monitor/default.nix +++ b/hosts/vps-monitor/default.nix @@ -47,9 +47,12 @@ enable = true; domain = "status.${privateDomain}"; generateDefaultEndpoints = true; - endpoints."alerts.${sproutedDomain}" = { - path = "/v1/health"; - extraConditions = [ "[BODY].healthy == true" ]; + endpoints = { + "dav.${sproutedDomain}".enable = false; + "alerts.${sproutedDomain}" = { + path = "/v1/health"; + extraConditions = [ "[BODY].healthy == true" ]; + }; }; }; diff --git a/modules/system/web-services/gatus.nix b/modules/system/web-services/gatus.nix index d2e44df..475c688 100644 --- a/modules/system/web-services/gatus.nix +++ b/modules/system/web-services/gatus.nix @@ -30,6 +30,9 @@ in { name, ... }: { options = { + enable = lib.mkEnableOption "" // { + default = true; + }; name = lib.mkOption { type = lib.types.nonEmptyStr; default = name; @@ -160,7 +163,7 @@ in ]; }; in - cfg.endpoints |> lib.attrValues |> lib.map mkEndpoint; + cfg.endpoints |> lib.attrValues |> lib.filter (endpoint: endpoint.enable) |> lib.map mkEndpoint; }; };