draga79 / NotiMail

Server-side email notification manager using several push providers for real-time alerts. Conserve mobile battery without compromising on immediacy.
BSD 3-Clause "New" or "Revised" License
17 stars 1 forks source link

Ntfy authentication #3

Closed dziq closed 10 months ago

dziq commented 10 months ago

I have small suggestion. Could you please add authentication option for ntfy. I have my own instance of ntfy and I've configure it to only get notifications from authenticated sources. It works but I have to add header definition to NotiMail.py like ntfy has in its docs https://docs.ntfy.sh/publish/#authentication.

draga79 commented 10 months ago

I've just pushed the last commits with optional ntfy authentication (via token). You can add a Token configuration option in the config.ini (for example: Url1 will use Token1 if present) and it will be used to push notifications. It'll be a part of the 0.10 release, for now it's in the master - please test and let me know if you encounter problems.