Related: Add ntfy.sh and shoutrrr Alert services
It think it would be nice if we could allow users to
- Specify the webhook url;
- Specify request headers, if any;
- A request body template, e.g.,
JSON:
{"text": "${message:json}", "something": "else"}
XML:
<alert>${message:xml}</alert>
application/x-www-form-urlencoded:
text=${message:url}&something=else
Plaintext:
${message}
where ${message}
is the alert message placeholder and :format
escapes the message based on format
.