server.yml 3.3 KB

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