feat: add initial setup for declarative uptime-kuma monitors

This commit is contained in:
Luj 2024-12-08 13:23:45 +01:00
parent f3001378ad
commit 4bad661036
Signed by: luj
GPG key ID: 6FC74C847011FD83
4 changed files with 41 additions and 21 deletions

View file

@ -1,6 +1,7 @@
{
pkgs,
config,
inputs,
...
}:
{
@ -23,24 +24,12 @@
};
age.secrets."stateless-uptime-kuma-password".file = ../../secrets/stateless-uptime-kuma-password.age;
nixpkgs.overlays = [
(import "${inputs.stateless-uptime-kuma}/overlay.nix")
];
statelessUptimeKuma = {
enableService = true;
probesConfig = {
monitors = {
"mdr" = {
url = "https://82.67.34.230";
keyword = "Ulm";
type = "keyword";
accepted_statuscodes = [ "200-299" ];
headers = ''
{
"Host": "julienmalka.me"
}
'';
};
};
};
extraFlags = [
"-s"
"-v DEBUG"