binwiederhier / ntfy

Send push notifications to your phone or desktop using PUT/POST
https://ntfy.sh
Apache License 2.0
17.81k stars 694 forks source link

Support for password-file in subscribe entries in client.yml #590

Open arjan-s opened 1 year ago

arjan-s commented 1 year ago

I would like to request support for a password-file option next to the existing password option inside the subscribe option in client.yml. The reason for requesting this is that I use agenix for handling my serverside secrets, and as such I can't hardcode passwords in config files. The password for a ntfy subscription could for instance be published in /run/agenix/ntfy_topic_pw, and I would like ntfy to be able to read it from there.

arjan-s commented 1 year ago

I solved this by assigning $NTFY_USER using EnvironmentFile in my systemd service. The approach suggested in this issue still has my preference, but at least it works now. :)