server.yml 2.4 KB

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