diff --git a/hosts/vps-monitor/default.nix b/hosts/vps-monitor/default.nix index f4d95e4..ea33c19 100644 --- a/hosts/vps-monitor/default.nix +++ b/hosts/vps-monitor/default.nix @@ -59,7 +59,7 @@ enable = true; domain = "status.${privateDomain}"; generateDefaultEndpoints = true; - endpoints."alerts" = { + endpoints."alerts.${privateDomain}" = { path = "/v1/health"; extraConditions = [ "[BODY].healthy == true" ]; }; diff --git a/modules/system/web-services/gatus.nix b/modules/system/web-services/gatus.nix index 35c5430..bb6e87b 100644 --- a/modules/system/web-services/gatus.nix +++ b/modules/system/web-services/gatus.nix @@ -183,7 +183,7 @@ in |> lib.filter (domain: domain != cfg.domain) |> lib.map ( domain: - lib.nameValuePair (self.lib.subdomainOf domain) { + lib.nameValuePair domain { inherit domain; group = hostName; }