From 4039f128712a9e765ca7bb53181ef547547d73cc Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Thu, 22 Jan 2026 22:42:54 +0100 Subject: [PATCH] vps-monitor: Don't monitor public dav domain with gatus --- hosts/vps-monitor/default.nix | 9 ++++++--- modules/system/web-services/gatus.nix | 5 ++++- 2 files changed, 10 insertions(+), 4 deletions(-) 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; }; };