Skip to content

Commit

Permalink
Add gatus status page
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Dec 23, 2024
1 parent bc6ec5c commit eb17f82
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions hosts/nickel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@
locations."/".proxyPass =
"http://127.0.0.1:${toString config.services.scrutiny.settings.web.listen.port}";
};
"status.${labDomain}" = labCert // {
locations."/".proxyPass = "http://127.0.0.1:${toString config.services.gatus.settings.web.port}";
};
"home.${labDomain}" = labCert // {
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.home-assistant.config.http.server_port}";
Expand Down Expand Up @@ -490,6 +493,48 @@
enable = true;
};

services.gatus = {
enable = true;
settings = {
web.port = 3333;
connectivity.checker = {
target = "1.1.1.1:53";
interval = "60s";
};
endpoints = [
{
name = "Syncthing cloud node";
url = "https://sync.joinemm.dev/rest/noauth/health";
interval = "5m";
conditions = [
"[STATUS] == 200"
"[BODY].status == OK"
"[RESPONSE_TIME] < 300"
];
}
{
name = "Minecraft";
url = "https://mcapi.us/server/status?ip=mc.joinemm.dev";
interval = "10m";
conditions = [
"[STATUS] == 200"
"[BODY].online == true"
"[RESPONSE_TIME] < 1000"
];
}
{
name = "Radicale";
url = "https://dav.joinemm.dev";
interval = "5m";
conditions = [
"[STATUS] == 200"
"[RESPONSE_TIME] < 300"
];
}
];
};
};

home-manager.users.${user.name} = {
home.stateVersion = config.system.stateVersion;
xdg.configFile."recyclarr/recyclarr.yml".source = ./recyclarr.yml;
Expand Down

0 comments on commit eb17f82

Please sign in to comment.