Add ntfy alerting to gatus

This commit is contained in:
Pim Kunis 2025-06-07 18:18:30 +02:00
parent 5e3245115f
commit cadeb3fb15
2 changed files with 22 additions and 12 deletions

View file

@ -45,21 +45,31 @@ in {
enable = true;
settings = {
alerting.email = {
from = "gatus@kun.is";
host = "mail.smtp2go.com";
port = 2525;
to = "pim@kunis.nl";
client.insecure = true;
username = "$SMTP_USERNAME";
password = "$SMTP_PASSWORD";
alerting = let
default-alert = {
enabled = true;
failure-threshold = 2;
success-threshold = 1;
send-on-resolved = true;
};
in {
email = {
from = "gatus@kun.is";
host = "mail.smtp2go.com";
port = 2525;
to = "pim@kunis.nl";
client.insecure = true;
username = "$SMTP_USERNAME";
password = "$SMTP_PASSWORD";
click = "http://warwick:${toString gatusPort}";
inherit default-alert;
};
ntfy = {
url = "https://ntfy.kun.is";
token = "$NTFY_ACCESS_TOKEN";
inherit default-alert;
};
};
web.port = gatusPort;