diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-12-15 20:17:22 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-12-15 20:19:43 -0800 |
| commit | 2814d5520623efe5f48c26f639d3ed6cc5f0d8d2 (patch) | |
| tree | 3fc1af65dac5ed55aceaab7574b22fea32cad86a /routes.toml.example | |
| parent | 2e41f030f02a336c2e9866d3d56b0494da5a622e (diff) | |
| download | posthook-2814d5520623efe5f48c26f639d3ed6cc5f0d8d2.tar.gz posthook-2814d5520623efe5f48c26f639d3ed6cc5f0d8d2.zip | |
Add email integration
Diffstat (limited to 'routes.toml.example')
| -rw-r--r-- | routes.toml.example | 20 |
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" |
