mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 11:41:34 +01:00
gatus: Set alerting URL with new option ntfyUrl
This commit is contained in:
parent
92d61afc40
commit
10bd5fcf24
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue