# /etc/cashumints/alert.env # # Read by cashumints-alert@.service, which systemd starts when any of the three units # fails. Everything here is optional: with the file absent or both values empty, an # alert is still written to the journal at ERROR priority and is readable with # # journalctl -p err -t cashumints-alert # # Set one or both to have failures leave the machine. # # Install it root-owned and not world-readable — a webhook URL is a capability: # sudo install -d -m 0755 /etc/cashumints # sudo install -m 0640 -o root -g root deploy/alert.env.example /etc/cashumints/alert.env # sudo systemctl daemon-reload # An ntfy topic URL. Free and public at ntfy.sh; pick a topic name nobody will guess, # because anyone who knows it can read and post to it. #NTFY_URL=https://ntfy.sh/cashumints-alerts-CHANGE-ME # Anything that accepts a JSON POST. The body carries `unit`, `host`, `at`, `text` and # `content` — the last of which is what Discord and most Slack-compatible endpoints read, # so one payload fits all three. #WEBHOOK_URL=https://discord.com/api/webhooks/…