mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
add gatus
This commit is contained in:
parent
d91fc7ef85
commit
5701ab7b18
1 changed files with 64 additions and 0 deletions
64
homelab/gatus/default.nix
Normal file
64
homelab/gatus/default.nix
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.gatus = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
settings = {
|
||||||
|
web.port = 61208;
|
||||||
|
endpoints = [
|
||||||
|
{
|
||||||
|
name = "Personal Site";
|
||||||
|
url = "https://ahoneybun.net";
|
||||||
|
interval = "5m";
|
||||||
|
conditions = [
|
||||||
|
"[STATUS] == 200"
|
||||||
|
"[RESPONSE_TIME] < 300"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Jellyfin";
|
||||||
|
url = "https://videos.ahoneybun.net/health";
|
||||||
|
interval = "5m";
|
||||||
|
conditions = [
|
||||||
|
"[STATUS] == 200"
|
||||||
|
"[BODY] == Healthy"
|
||||||
|
"[RESPONSE_TIME] < 300"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Navidrome";
|
||||||
|
url = "https://music.ahoneybun.net";
|
||||||
|
interval = "5m";
|
||||||
|
conditions = [
|
||||||
|
"[STATUS] == 200"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Forgejo";
|
||||||
|
url = "https://git.ahoneybun.net/";
|
||||||
|
interval = "5m";
|
||||||
|
conditions = [
|
||||||
|
"[STATUS] == 200"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "PhotoPrism";
|
||||||
|
url = "https://photos.ahoneybun.net";
|
||||||
|
interval = "5m";
|
||||||
|
conditions = [
|
||||||
|
"[STATUS] == 200"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Audiobookself";
|
||||||
|
url = "https://audiobookshelf.ahoneybun.net/";
|
||||||
|
interval = "5m";
|
||||||
|
conditions = [
|
||||||
|
"[STATUS] == 200"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue