Major refactor of fortress config

This commit is contained in:
Lauren Lagarde 2025-08-03 18:10:24 -05:00
parent 74929a0aa6
commit 72d51d403a
5 changed files with 239 additions and 226 deletions

View file

@ -0,0 +1,69 @@
{ ... }: {
sops.secrets."dotspace/gatus.env".mode = "0664";
services.gatus = {
enable = true;
environmentFile = "/run/secrets/dotspace/gatus.env";
settings = {
web.port = 18255;
alerting.discord.webhook-url = "\${GATUS_DISCORD_WEBHOOK}";
maintenance = {
start = "04:50";
duration = "30m";
timezone = "America/Chicago";
};
endpoints = [
{
name = "Synapse";
group = "Core Services";
url = "https://matrix.mlaga97.space/_synapse/admin/v1/server_version";
interval = "30s";
conditions = [
"[STATUS] == 200"
"has([BODY].server_version) == true"
"[CERTIFICATE_EXPIRATION] > 48h"
];
alerts = [{
type = "discord";
send-on-resolved = true;
description = "\${LAUREN_DISCORD_USERNAME}";
}];
}
{
name = "Home Assistant";
group = "Core Services";
url = "https://homeassistant.mlaga97.space/api/webhook/-k9lg4u3J3_QLO6avhXNG4KZa";
interval = "30s";
conditions = [
"[STATUS] == 200"
"[CERTIFICATE_EXPIRATION] > 48h"
];
alerts = [{
type = "discord";
send-on-resolved = true;
description = "\${LAUREN_DISCORD_USERNAME}";
}];
}
{
name = "Git";
group = "Core Services";
url = "https://git.mlaga97.space/api/healthz";
interval = "30s";
conditions = [
"[STATUS] == 200"
"[BODY].status == pass"
"[CERTIFICATE_EXPIRATION] > 48h"
];
alerts = [{
type = "discord";
send-on-resolved = true;
description = "\${LAUREN_DISCORD_USERNAME}";
}];
}
];
};
};
}