gatus: Set alerting URL with new option ntfyUrl

This commit is contained in:
SebastianStork 2026-01-15 22:48:22 +01:00
parent 92d61afc40
commit 10bd5fcf24
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -20,6 +20,10 @@ in
type = lib.types.port; type = lib.types.port;
default = 8080; default = 8080;
}; };
ntfyUrl = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "https://${config.custom.web-services.ntfy.domain}";
};
generateDefaultEndpoints = lib.mkEnableOption ""; generateDefaultEndpoints = lib.mkEnableOption "";
endpoints = lib.mkOption { endpoints = lib.mkOption {
type = lib.types.attrsOf ( type = lib.types.attrsOf (
@ -113,7 +117,7 @@ in
connectivity.checker.target = "1.1.1.1:53"; # Cloudflare DNS connectivity.checker.target = "1.1.1.1:53"; # Cloudflare DNS
alerting.ntfy = { alerting.ntfy = {
topic = "uptime"; topic = "uptime";
url = "https://alerts.${config.custom.networking.overlay.domain}"; url = cfg.ntfyUrl;
click = "https://${cfg.domain}"; click = "https://${cfg.domain}";
default-alert = { default-alert = {
enable = true; enable = true;