config.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # ntfy config file
  2. # Listen address for the HTTP web server
  3. # Format: <hostname>:<port>
  4. #
  5. # listen-http: ":80"
  6. # Listen address for the HTTPS web server. If set, you must also set "key-file" and "cert-file".
  7. # Format: <hostname>:<port>
  8. #
  9. # listen-https:
  10. # Path to the private key file for the HTTPS web server. Not used if "listen-https" is not set.
  11. # Format: <filename>
  12. #
  13. # key-file:
  14. # Path to the cert file for the HTTPS web server. Not used if "listen-https" is not set.
  15. # Format: <filename>
  16. #
  17. # cert-file:
  18. # If set, also publish messages to a Firebase Cloud Messaging (FCM) topic for your app.
  19. # This is optional and only required to save battery when using the Android app.
  20. #
  21. # firebase-key-file: <filename>
  22. # If set, messages are cached in a local SQLite database instead of only in-memory. This
  23. # allows for service restarts without losing messages in support of the since= parameter.
  24. #
  25. # To disable the cache entirely (on-disk/in-memory), set "cache-duration" to 0.
  26. #
  27. # Note: If you are running ntfy with systemd, make sure this cache file is owned by the
  28. # ntfy user and group by running: chown ntfy.ntfy <filename>.
  29. #
  30. # cache-file: <filename>
  31. # Duration for which messages will be buffered before they are deleted.
  32. # This is required to support the "since=..." and "poll=1" parameter.
  33. #
  34. # You can disable the cache entirely by setting this to 0.
  35. #
  36. # cache-duration: 12h
  37. # Interval in which keepalive messages are sent to the client. This is to prevent
  38. # intermediaries closing the connection for inactivity.
  39. #
  40. # Note that the Android app has a hardcoded timeout at 77s, so it should be less than that.
  41. #
  42. # keepalive-interval: 30s
  43. # Interval in which the manager prunes old messages, deletes topics
  44. # and prints the stats.
  45. #
  46. # manager-interval: 1m
  47. # Rate limiting: Total number of topics before the server rejects new topics.
  48. #
  49. # global-topic-limit: 5000
  50. # Rate limiting: Number of subscriptions per visitor (IP address)
  51. #
  52. # visitor-subscription-limit: 30
  53. # Rate limiting: Allowed GET/PUT/POST requests per second, per visitor:
  54. # - visitor-request-limit-burst is the initial bucket of requests each visitor has
  55. # - visitor-request-limit-replenish is the rate at which the bucket is refilled
  56. #
  57. # visitor-request-limit-burst: 60
  58. # visitor-request-limit-replenish: 10s
  59. # If set, the X-Forwarded-For header is used to determine the visitor IP address
  60. # instead of the remote address of the connection.
  61. #
  62. # WARNING: If you are behind a proxy, you must set this, otherwise all visitors are rate limited
  63. # as if they are one.
  64. #
  65. # behind-proxy: false