binwiederhier / ntfy

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

Topic-specific Configurations #1214

Open tentme opened 2 weeks ago

tentme commented 2 weeks ago

:bulb: Idea

As the title suggests, this will allow admin to specify custom attachment size limits, expiration times, etc. for individual topics.

For example, via server.yml:

topics:
  my_topic:
    attachment-file-size-limit: 20MB
    attachment-expiry-duration: 12h
  another_topic:
    attachment-file-size-limit: 5MB
    attachment-expiry-duration: 1h

Or, like auth-file, these configurations could be put into a .db file and modified dynamically via the ntfy CLI.

I imagine this could provide more flexibility and better resource management. And it would cool if this implemented like Tiers.