From 4ddc49c0010c24e21115c77edad114526a57b1d9 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Sat, 17 Jan 2026 22:01:09 +0100 Subject: [PATCH] gatus: Include the whole domain in the endpoint name --- hosts/vps-monitor/default.nix | 2 +- modules/system/web-services/gatus.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }