Add gatus config
This commit is contained in:
parent
b5c9b4b971
commit
a258f7ef70
2 changed files with 73 additions and 2 deletions
|
@ -72,6 +72,10 @@
|
|||
group = "haproxy";
|
||||
};
|
||||
|
||||
"dotspace/gatus.env" = {
|
||||
mode = "0664";
|
||||
};
|
||||
|
||||
"dotspace/fortress/keys/tinc/rsa_key.priv" = { sopsFile = ./secrets.yaml; };
|
||||
"dotspace/fortress/keys/tinc/ed25519_key.priv" = { sopsFile = ./secrets.yaml; };
|
||||
|
||||
|
@ -97,6 +101,72 @@
|
|||
};
|
||||
};
|
||||
|
||||
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}";
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# https://gist.github.com/maxidorius/2b0acc2e707ae9a2d6d0267026a1024f
|
||||
services.coturn = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue