45 lines
1,017 B
Nix
45 lines
1,017 B
Nix
{ unstable, ... }: let
|
|
gatus.up = [
|
|
"[STATUS] == 200"
|
|
"[RESPONSE_TIME] < 300"
|
|
];
|
|
in {
|
|
services.gatus = {
|
|
package = unstable.gatus;
|
|
enable = true;
|
|
openFirewall = true;
|
|
settings = {
|
|
web.port = 8081;
|
|
endpoints = [
|
|
{
|
|
name = "nas";
|
|
group = "external";
|
|
url = "http://192.168.50.240";
|
|
interval = "5m";
|
|
conditions = gatus.up;
|
|
}
|
|
{
|
|
name = "site";
|
|
group = "remote";
|
|
url = "https://squi.bid";
|
|
interval = "10m";
|
|
conditions = gatus.up;
|
|
}
|
|
{
|
|
name = "git site";
|
|
group = "remote";
|
|
url = "https://git.squi.bid";
|
|
interval = "10m";
|
|
conditions = gatus.up;
|
|
}
|
|
{
|
|
name = "voidpkgs";
|
|
group = "remote";
|
|
url = "https://voidpkgs.squi.bid";
|
|
interval = "10m";
|
|
conditions = [''[BODY] == pat(*x86_64-repodata.sig2*)''];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|