feat(gatus): install
This commit is contained in:
parent
663b39451c
commit
fe11ecea2a
2 changed files with 48 additions and 0 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
"copyparty"
|
"copyparty"
|
||||||
"couchdb"
|
"couchdb"
|
||||||
"cryptpad"
|
"cryptpad"
|
||||||
|
"gatus"
|
||||||
"homepage-dashboard"
|
"homepage-dashboard"
|
||||||
"immich"
|
"immich"
|
||||||
"jellyfin"
|
"jellyfin"
|
||||||
|
|
|
||||||
47
modules/nixos/features/gatus.nix
Normal file
47
modules/nixos/features/gatus.nix
Normal 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
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue