32 lines
704 B
Nix
32 lines
704 B
Nix
{
|
|
services.gatus = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
settings = {
|
|
web.port = 8080;
|
|
metrics = true;
|
|
endpoints = [
|
|
{
|
|
name = "jellyfin";
|
|
url = "https://jellyfin.procopius.dk/health";
|
|
interval = "5m";
|
|
conditions = [
|
|
"[STATUS] == 200"
|
|
"[BODY] == Healthy"
|
|
"[RESPONSE_TIME] < 300"
|
|
];
|
|
}
|
|
{
|
|
name = "sonarr";
|
|
url = "https://sonarr.procopius.dk/health";
|
|
interval = "5m";
|
|
conditions = [
|
|
"[STATUS] == 200"
|
|
"[BODY] == Healthy"
|
|
"[RESPONSE_TIME] < 300"
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|