aboutsummaryrefslogtreecommitdiff
path: root/routes.toml.example
diff options
context:
space:
mode:
Diffstat (limited to 'routes.toml.example')
-rw-r--r--routes.toml.example20
1 files changed, 20 insertions, 0 deletions
diff --git a/routes.toml.example b/routes.toml.example
index ac9a493..f6a2db4 100644
--- a/routes.toml.example
+++ b/routes.toml.example
@@ -32,6 +32,26 @@ enabled = true
server = "https://ntfy.sh"
topic = "my-alerts"
+# Example: JSON webhook with email notifications
+[[route]]
+name = "email-webhook"
+contentType = "json"
+hcaptchaProtected = false
+requireToken = false
+
+[route.email]
+enabled = true
+to = "admin@example.com"
+from = "webhook@example.com"
+host = "smtp.example.com"
+port = 587
+secure = true
+username = "webhook@example.com"
+password = "your-smtp-password"
+subject = "New Webhook Received"
+includeBody = true
+includeHeaders = false
+
# Example: Multipart file upload with token protection
[[route]]
name = "file-upload"