Host gatus on homeserver instead of vps-monitor

This commit is contained in:
SebastianStork 2026-03-01 14:44:42 +01:00
parent b80fc49dee
commit d521069b8d
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
4 changed files with 12 additions and 23 deletions

View file

@ -76,7 +76,7 @@ in
};
config = lib.mkIf cfg.enable {
sops = {
sops = lib.mkIf cfg.alerts.enable {
secrets."healthchecks/ping-key" = { };
templates."gatus.env" = {
content = "HEALTHCHECKS_PING_KEY=${config.sops.placeholder."healthchecks/ping-key"}";
@ -103,7 +103,7 @@ in
services.gatus = {
enable = true;
environmentFile = config.sops.templates."gatus.env".path;
environmentFile = lib.mkIf cfg.alerts.enable config.sops.templates."gatus.env".path;
settings = {
web = {
@ -198,7 +198,7 @@ in
lib.mkIf cfg.generateDefaultEndpoints (
defaultEndpoints
// {
"healthchecks.io" = {
"healthchecks.io" = lib.mkIf cfg.alerts.enable {
group = "external";
domain = "hc-ping.com";
path = "/\${HEALTHCHECKS_PING_KEY}/${config.networking.hostName}-gatus-uptime?create=1";