feat(gatus): install

This commit is contained in:
Will Holdsworth 2026-03-02 23:22:07 +11:00
parent 663b39451c
commit fe11ecea2a
Signed by: will-holdsworth
SSH key fingerprint: SHA256:Ykee8aymMJNAiYeeEmiwcIzkA1wgd4v8OZcWGxjq12c
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,47 @@
let
port = 5025;
certloc = "/var/lib/acme/fi33.buzz";
in
{
services = {
gatus = {
enable = true;
settings = {
web = {
inherit port;
};
endpoints = [
{
name = "website";
url = "https://twin.sh/health";
interval = "5m";
conditions = [
"[STATUS] == 200"
"[BODY].status == UP"
"[RESPONSE_TIME] < 300"
];
}
];
};
};
# borgmatic.settings = {
# source_directories = [ ];
# postgresql_databases = [
# {
# name = "gatus";
# hostname = "localhost";
# username = "root";
# password = "{credential systemd borgmatic-pg}";
# }
# ];
# };
caddy.virtualHosts."uptime.fi33.buzz".extraConfig = ''
reverse_proxy localhost:${toString port}
tls ${certloc}/cert.pem ${certloc}/key.pem {
protocols tls1.3
}
'';
};
}