feat(sgx): add Uptime Kuma to monitor mx services independently
Runs on sgx so alerts (via Gmail) still work even if mx is down. Available at https://status.hoyer.world behind nginx with ACME cert. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7df551d46f
commit
04ebe32c3c
4 changed files with 21 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
"openwebui.hoyer.world"
|
"openwebui.hoyer.world"
|
||||||
"syncthing.hoyer.world"
|
"syncthing.hoyer.world"
|
||||||
"home.hoyer.world"
|
"home.hoyer.world"
|
||||||
|
"status.hoyer.world"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
./mail.nix
|
./mail.nix
|
||||||
./wyoming.nix
|
./wyoming.nix
|
||||||
./searx.nix
|
./searx.nix
|
||||||
|
./uptime-kuma.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.tmp.useTmpfs = false;
|
boot.tmp.useTmpfs = false;
|
||||||
|
|
|
||||||
|
|
@ -32,5 +32,14 @@
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"status.hoyer.world" = {
|
||||||
|
enableACME = false;
|
||||||
|
useACMEHost = "internal.hoyer.world";
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:4000";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
systems/x86_64-linux/sgx/uptime-kuma.nix
Normal file
10
systems/x86_64-linux/sgx/uptime-kuma.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.uptime-kuma = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
PORT = "4000";
|
||||||
|
HOST = "127.0.0.1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue