server.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 sending feature (outgoing mail only).
  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 outgoing e-mail notifications via the 'X-Email' header. If this header is set,
  42. # messages will additionally be sent out as e-mail using an external SMTP server. As of today, only
  43. # SMTP servers with plain text auth and STARTLS are supported. Please also refer to the rate limiting settings
  44. # below (visitor-email-limit-burst & visitor-email-limit-burst).
  45. #
  46. # - smtp-sender-addr is the hostname:port of the SMTP server
  47. # - smtp-sender-user/smtp-sender-pass are the username and password of the SMTP user
  48. # - smtp-sender-from is the e-mail address of the sender
  49. #
  50. # smtp-sender-addr:
  51. # smtp-sender-user:
  52. # smtp-sender-pass:
  53. # smtp-sender-from:
  54. # If enabled, ntfy will launch a lightweight SMTP server for incoming messages. Once configured, users can send
  55. # emails to a topic e-mail address to publish messages to a topic.
  56. #
  57. # - smtp-server-listen defines the IP address and port the SMTP server will listen on, e.g. :25 or 1.2.3.4:25
  58. # - smtp-server-domain is the e-mail domain, e.g. ntfy.sh
  59. # - smtp-server-addr-prefix is an optional prefix for the e-mail addresses to prevent spam. If set to "ntfy-",
  60. # for instance, only e-mails to ntfy-$topic@ntfy.sh will be accepted. If this is not set, all emails to
  61. # $topic@ntfy.sh will be accepted (which may obviously be a spam problem).
  62. #
  63. # smtp-server-listen:
  64. # smtp-server-domain:
  65. # smtp-server-addr-prefix:
  66. # Interval in which keepalive messages are sent to the client. This is to prevent
  67. # intermediaries closing the connection for inactivity.
  68. #
  69. # Note that the Android app has a hardcoded timeout at 77s, so it should be less than that.
  70. #
  71. # keepalive-interval: 30s
  72. # Interval in which the manager prunes old messages, deletes topics
  73. # and prints the stats.
  74. #
  75. # manager-interval: 1m
  76. # Rate limiting: Total number of topics before the server rejects new topics.
  77. #
  78. # global-topic-limit: 5000
  79. # Rate limiting: Number of subscriptions per visitor (IP address)
  80. #
  81. # visitor-subscription-limit: 30
  82. # Rate limiting: Allowed GET/PUT/POST requests per second, per visitor:
  83. # - visitor-request-limit-burst is the initial bucket of requests each visitor has
  84. # - visitor-request-limit-replenish is the rate at which the bucket is refilled
  85. #
  86. # visitor-request-limit-burst: 60
  87. # visitor-request-limit-replenish: 10s
  88. # Rate limiting: Allowed emails per visitor:
  89. # - visitor-email-limit-burst is the initial bucket of emails each visitor has
  90. # - visitor-email-limit-replenish is the rate at which the bucket is refilled
  91. #
  92. # visitor-email-limit-burst: 16
  93. # visitor-email-limit-replenish: 1h