Host gatus #122

Merged
wi11-holdsworth merged 2 commits from 95 into main 2026-03-04 21:27:33 +11:00
2 changed files with 48 additions and 0 deletions
Showing only changes of commit fe11ecea2a - Show all commits

View file

@ -10,6 +10,7 @@
"copyparty"
"couchdb"
"cryptpad"
"gatus"
"homepage-dashboard"
"immich"
"jellyfin"

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
}
'';
};
}