mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 20:09: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,9 +47,12 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "status.${privateDomain}";
|
domain = "status.${privateDomain}";
|
||||||
generateDefaultEndpoints = true;
|
generateDefaultEndpoints = true;
|
||||||
endpoints."alerts.${sproutedDomain}" = {
|
endpoints = {
|
||||||
path = "/v1/health";
|
"dav.${sproutedDomain}".enable = false;
|
||||||
extraConditions = [ "[BODY].healthy == true" ];
|
"alerts.${sproutedDomain}" = {
|
||||||
|
path = "/v1/health";
|
||||||
|
extraConditions = [ "[BODY].healthy == true" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,9 @@ in
|
||||||
{ name, ... }:
|
{ name, ... }:
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
|
enable = lib.mkEnableOption "" // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
name = lib.mkOption {
|
name = lib.mkOption {
|
||||||
type = lib.types.nonEmptyStr;
|
type = lib.types.nonEmptyStr;
|
||||||
default = name;
|
default = name;
|
||||||
|
|
@ -160,7 +163,7 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
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