mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
feat: add initial setup for declarative uptime-kuma monitors
This commit is contained in:
parent
f3001378ad
commit
4bad661036
4 changed files with 41 additions and 21 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue