A Cloudflare Email Worker to transform mails into ntfy notifications.
- Rename
wrangler.example.toml
towrangler.toml
. - Set worker name and environment vars in
wrangler.toml
. - Set
NTFY_TOKEN
secret environment variable on Cloudflare Dashboard. - Run
npm install
to install dependencies. - Run
npx wrangler deploy
to deploy the worker. - Test and enjoy! 🎉
Name | Usage |
---|---|
FORWARD_TO | A Catch-all address. Mail received from non-whitelisted senders will be forwarded to this address. |
NTFY_ENDPOINT | Ntfy Endpoint URL. |
NTFY_TOKEN | Ntfy Token. Highly recommended to be configured as Secret / Encrypted |
WHITELIST | A JSON object containing two lists. The address list contains several email addresses.The domain list contains several domains (without the "@" prefix). |
TZ | Timezone |