binwiederhier / ntfy

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

Teach ntfy webpush to write the keys to a file #1138

Open nogweii opened 4 months ago

nogweii commented 4 months ago

This does half of #1136. With just this, I can write some ansible code to read the created file and copy the values into the main config. A bit redundant, perhaps, but easily done. Adding the ability to read the file directly would be the next step.

Not super happy with the test case, but it covers the bases. A bit worried about relying on the side-effect of "the filesystem isn't broken" but that's so unusual that it's probably not worth fretting over.