auth machine
This commit is contained in:
parent
98dce86882
commit
851a9e18db
34 changed files with 2383 additions and 99 deletions
32
machines/monitor/gatus.nix
Normal file
32
machines/monitor/gatus.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
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"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue