server.yml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. # ntfy server config file
  2. #
  3. # Please refer to the documentation at https://ntfy.sh/docs/config/ for details.
  4. # All options also support underscores (_) instead of dashes (-) to comply with the YAML spec.
  5. # Public facing base URL of the service (e.g. https://ntfy.sh or https://ntfy.example.com)
  6. # This setting is currently only used by the attachments and e-mail sending feature (outgoing mail only).
  7. #
  8. # base-url:
  9. # Listen address for the HTTP & HTTPS web server. If "listen-https" is set, you must also
  10. # set "key-file" and "cert-file". Format: [<ip>]:<port>, e.g. "1.2.3.4:8080".
  11. #
  12. # To listen on all interfaces, you may omit the IP address, e.g. ":443".
  13. # To disable HTTP, set "listen-http" to "-".
  14. #
  15. # listen-http: ":80"
  16. # listen-https:
  17. # Listen on a Unix socket, e.g. /var/lib/ntfy/ntfy.sock
  18. # This can be useful to avoid port issues on local systems, and to simplify permissions.
  19. #
  20. # listen-unix: <socket-path>
  21. # Path to the private key & cert file for the HTTPS web server. Not used if "listen-https" is not set.
  22. #
  23. # key-file: <filename>
  24. # cert-file: <filename>
  25. # If set, also publish messages to a Firebase Cloud Messaging (FCM) topic for your app.
  26. # This is optional and only required to save battery when using the Android app.
  27. #
  28. # firebase-key-file: <filename>
  29. # If set, messages are cached in a local SQLite database instead of only in-memory. This
  30. # allows for service restarts without losing messages in support of the since= parameter.
  31. #
  32. # The "cache-duration" parameter defines the duration for which messages will be buffered
  33. # before they are deleted. This is required to support the "since=..." and "poll=1" parameter.
  34. # To disable the cache entirely (on-disk/in-memory), set "cache-duration" to 0.
  35. # The cache file is created automatically, provided that the correct permissions are set.
  36. #
  37. # Debian/RPM package users:
  38. # Use /var/cache/ntfy/cache.db as cache file to avoid permission issues. The package
  39. # creates this folder for you.
  40. #
  41. # Check your permissions:
  42. # If you are running ntfy with systemd, make sure this cache file is owned by the
  43. # ntfy user and group by running: chown ntfy.ntfy <filename>.
  44. #
  45. # cache-file: <filename>
  46. # cache-duration: "12h"
  47. # If set, access to the ntfy server and API can be controlled on a granular level using
  48. # the 'ntfy user' and 'ntfy access' commands. See the --help pages for details, or check the docs.
  49. #
  50. # - auth-file is the SQLite user/access database; it is created automatically if it doesn't already exist
  51. # - auth-default-access defines the default/fallback access if no access control entry is found; it can be
  52. # set to "read-write" (default), "read-only", "write-only" or "deny-all".
  53. #
  54. # Debian/RPM package users:
  55. # Use /var/lib/ntfy/user.db as user database to avoid permission issues. The package
  56. # creates this folder for you.
  57. #
  58. # Check your permissions:
  59. # If you are running ntfy with systemd, make sure this user database file is owned by the
  60. # ntfy user and group by running: chown ntfy.ntfy <filename>.
  61. #
  62. # auth-file: <filename>
  63. # auth-default-access: "read-write"
  64. # If set, the X-Forwarded-For header is used to determine the visitor IP address
  65. # instead of the remote address of the connection.
  66. #
  67. # WARNING: If you are behind a proxy, you must set this, otherwise all visitors are rate limited
  68. # as if they are one.
  69. #
  70. # behind-proxy: false
  71. # If enabled, clients can attach files to notifications as attachments. Minimum settings to enable attachments
  72. # are "attachment-cache-dir" and "base-url".
  73. #
  74. # - attachment-cache-dir is the cache directory for attached files
  75. # - attachment-total-size-limit is the limit of the on-disk attachment cache directory (total size)
  76. # - attachment-file-size-limit is the per-file attachment size limit (e.g. 300k, 2M, 100M)
  77. # - attachment-expiry-duration is the duration after which uploaded attachments will be deleted (e.g. 3h, 20h)
  78. #
  79. # attachment-cache-dir:
  80. # attachment-total-size-limit: "5G"
  81. # attachment-file-size-limit: "15M"
  82. # attachment-expiry-duration: "3h"
  83. # If enabled, allow outgoing e-mail notifications via the 'X-Email' header. If this header is set,
  84. # messages will additionally be sent out as e-mail using an external SMTP server. As of today, only
  85. # SMTP servers with plain text auth and STARTLS are supported. Please also refer to the rate limiting settings
  86. # below (visitor-email-limit-burst & visitor-email-limit-burst).
  87. #
  88. # - smtp-sender-addr is the hostname:port of the SMTP server
  89. # - smtp-sender-user/smtp-sender-pass are the username and password of the SMTP user
  90. # - smtp-sender-from is the e-mail address of the sender
  91. #
  92. # smtp-sender-addr:
  93. # smtp-sender-user:
  94. # smtp-sender-pass:
  95. # smtp-sender-from:
  96. # If enabled, ntfy will launch a lightweight SMTP server for incoming messages. Once configured, users can send
  97. # emails to a topic e-mail address to publish messages to a topic.
  98. #
  99. # - smtp-server-listen defines the IP address and port the SMTP server will listen on, e.g. :25 or 1.2.3.4:25
  100. # - smtp-server-domain is the e-mail domain, e.g. ntfy.sh
  101. # - smtp-server-addr-prefix is an optional prefix for the e-mail addresses to prevent spam. If set to "ntfy-",
  102. # for instance, only e-mails to ntfy-$topic@ntfy.sh will be accepted. If this is not set, all emails to
  103. # $topic@ntfy.sh will be accepted (which may obviously be a spam problem).
  104. #
  105. # smtp-server-listen:
  106. # smtp-server-domain:
  107. # smtp-server-addr-prefix:
  108. # Interval in which keepalive messages are sent to the client. This is to prevent
  109. # intermediaries closing the connection for inactivity.
  110. #
  111. # Note that the Android app has a hardcoded timeout at 77s, so it should be less than that.
  112. #
  113. # keepalive-interval: "45s"
  114. # Interval in which the manager prunes old messages, deletes topics
  115. # and prints the stats.
  116. #
  117. # manager-interval: "1m"
  118. # Defines if the root route (/) is pointing to the landing page (as on ntfy.sh) or the
  119. # web app. If you self-host, you don't want to change this.
  120. # Can be "app" (default), "home" or "disable" to disable the web app entirely.
  121. #
  122. # web-root: app
  123. # Rate limiting: Total number of topics before the server rejects new topics.
  124. #
  125. # global-topic-limit: 15000
  126. # Rate limiting: Number of subscriptions per visitor (IP address)
  127. #
  128. # visitor-subscription-limit: 30
  129. # Rate limiting: Allowed GET/PUT/POST requests per second, per visitor:
  130. # - visitor-request-limit-burst is the initial bucket of requests each visitor has
  131. # - visitor-request-limit-replenish is the rate at which the bucket is refilled
  132. # - visitor-request-limit-exempt-hosts is a comma-separated list of hostnames and IPs to be
  133. # exempt from request rate limiting; hostnames are resolved at the time the server is started
  134. #
  135. # visitor-request-limit-burst: 60
  136. # visitor-request-limit-replenish: "5s"
  137. # visitor-request-limit-exempt-hosts: ""
  138. # Rate limiting: Allowed emails per visitor:
  139. # - visitor-email-limit-burst is the initial bucket of emails each visitor has
  140. # - visitor-email-limit-replenish is the rate at which the bucket is refilled
  141. #
  142. # visitor-email-limit-burst: 16
  143. # visitor-email-limit-replenish: "1h"
  144. # Rate limiting: Attachment size and bandwidth limits per visitor:
  145. # - visitor-attachment-total-size-limit is the total storage limit used for attachments per visitor
  146. # - visitor-attachment-daily-bandwidth-limit is the total daily attachment download/upload traffic limit per visitor
  147. #
  148. # visitor-attachment-total-size-limit: "100M"
  149. # visitor-attachment-daily-bandwidth-limit: "500M"