mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 17:49:07 +01:00
vps-monitor: Don't monitor public dav domain with gatus
This commit is contained in:
parent
edfc766b46
commit
4039f12871
2 changed files with 10 additions and 4 deletions
|
|
@ -47,11 +47,14 @@
|
|||
enable = true;
|
||||
domain = "status.${privateDomain}";
|
||||
generateDefaultEndpoints = true;
|
||||
endpoints."alerts.${sproutedDomain}" = {
|
||||
endpoints = {
|
||||
"dav.${sproutedDomain}".enable = false;
|
||||
"alerts.${sproutedDomain}" = {
|
||||
path = "/v1/health";
|
||||
extraConditions = [ "[BODY].healthy == true" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ntfy = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue