Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

257 строки
10 KiB

  1. # Endpoint URL that Draupnir uses to interact with the matrix homeserver (client-server API),
  2. # set this to the pantalaimon URL if you're using that.
  3. homeserverUrl: "{{ matrix_homeserver_url }}"
  4. # Endpoint URL that Draupnir could use to fetch events related to reports (client-server API and /_synapse/),
  5. # only set this to the public-internet homeserver client API URL, do NOT set this to the pantalaimon URL.
  6. rawHomeserverUrl: "{{ matrix_homeserver_url }}"
  7. # Matrix Access Token to use, Draupnir will only use this if pantalaimon.use is false.
  8. accessToken: "{{ matrix_bot_draupnir_access_token }}"
  9. # Options related to Pantalaimon (https://github.com/matrix-org/pantalaimon)
  10. #pantalaimon:
  11. # # Whether or not Draupnir will use pantalaimon to access the matrix homeserver,
  12. # # set to `true` if you're using pantalaimon.
  13. # #
  14. # # Be sure to point homeserverUrl to the pantalaimon instance.
  15. # #
  16. # # Draupnir will log in using the given username and password once,
  17. # # then store the resulting access token in a file under dataPath.
  18. # use: false
  19. #
  20. # # The username to login with.
  21. # username: draupnir
  22. #
  23. # # The password Draupnir will login with.
  24. # #
  25. # # After successfully logging in once, this will be ignored, so this value can be blanked after first startup.
  26. # password: your_password
  27. # The path Draupnir will store its state/data in, leave default ("/data/storage") when using containers.
  28. dataPath: "/data"
  29. # If true (the default), Draupnir will only accept invites from users present in managementRoom.
  30. autojoinOnlyIfManager: true
  31. # If `autojoinOnlyIfManager` is false, only the members in this space can invite
  32. # the bot to new rooms.
  33. #acceptInvitesFromSpace: "!example:example.org"
  34. # Whether Draupnir should report ignored invites to the management room (if autojoinOnlyIfManager is true).
  35. recordIgnoredInvites: false
  36. # The room ID (or room alias) of the management room, anyone in this room can issue commands to Draupnir.
  37. #
  38. # Draupnir has no more granular access controls other than this, be sure you trust everyone in this room - secure it!
  39. #
  40. # This should be a room alias or room ID - not a matrix.to URL.
  41. #
  42. # Note: By default, Draupnir is fairly verbose - expect a lot of messages in this room.
  43. # (see verboseLogging to adjust this a bit.)
  44. managementRoom: "{{ matrix_bot_draupnir_management_room }}"
  45. # Whether Draupnir should log a lot more messages in the room,
  46. # mainly involves "all-OK" messages, and debugging messages for when Draupnir checks bans in a room.
  47. verboseLogging: false
  48. # The log level of terminal (or container) output,
  49. # can be one of DEBUG, INFO, WARN and ERROR, in increasing order of importance and severity.
  50. #
  51. # This should be at INFO or DEBUG in order to get support for Draupnir problems.
  52. logLevel: "INFO"
  53. # Whether or not Draupnir should synchronize policy lists immediately after startup.
  54. # Equivalent to running '!draupnir sync'.
  55. syncOnStartup: true
  56. # Whether or not Draupnir should check moderation permissions in all protected rooms on startup.
  57. # Equivalent to running `!draupnir verify`.
  58. verifyPermissionsOnStartup: true
  59. # Whether or not Draupnir should actually apply bans and policy lists,
  60. # turn on to trial some untrusted configuration or lists.
  61. noop: false
  62. # Whether Draupnir should check member lists quicker (by using a different endpoint),
  63. # keep in mind that enabling this will miss invited (but not joined) users.
  64. #
  65. # Turn on if your bot is in (very) large rooms, or in large amounts of rooms.
  66. fasterMembershipChecks: false
  67. # A case-insensitive list of ban reasons to have the bot also automatically redact the user's messages for.
  68. #
  69. # If the bot sees you ban a user with a reason that is an (exact case-insensitive) match to this list,
  70. # it will also remove the user's messages automatically.
  71. #
  72. # Typically this is useful to avoid having to give two commands to the bot.
  73. # Advanced: Use asterisks to have the reason match using "globs"
  74. # (f.e. "spam*testing" would match "spam for testing" as well as "spamtesting").
  75. #
  76. # See here for more info: https://www.digitalocean.com/community/tools/glob
  77. # Note: Keep in mind that glob is NOT regex!
  78. automaticallyRedactForReasons:
  79. - "spam"
  80. - "advertising"
  81. # A list of rooms to protect. Draupnir will add this to the list it knows from its account data.
  82. #
  83. # It won't, however, add it to the account data.
  84. # Manually add the room via '!draupnir rooms add' to have it stay protected regardless if this config value changes.
  85. #
  86. # Note: These must be matrix.to URLs
  87. #protectedRooms:
  88. # - "https://matrix.to/#/#yourroom:example.org"
  89. # Whether or not to add all joined rooms to the "protected rooms" list
  90. # (excluding the management room and watched policy list rooms, see below).
  91. #
  92. # Note that this effectively makes the protectedRooms and associated commands useless
  93. # for regular rooms.
  94. #
  95. # Note: the management room is *excluded* from this condition.
  96. # Explicitly add it as a protected room to protect it.
  97. #
  98. # Note: Ban list rooms the bot is watching but didn't create will not be protected.
  99. # Explicitly add these rooms as a protected room list if you want them protected.
  100. protectAllJoinedRooms: false
  101. # Increase this delay to have Draupnir wait longer between two consecutive backgrounded
  102. # operations. The total duration of operations will be longer, but the homeserver won't
  103. # be affected as much. Conversely, decrease this delay to have Draupnir chain operations
  104. # faster. The total duration of operations will generally be shorter, but the performance
  105. # of the homeserver may be more impacted.
  106. backgroundDelayMS: 500
  107. # Server administration commands, these commands will only work if Draupnir is
  108. # a global server administrator, and the bot's server is a Synapse instance.
  109. admin:
  110. # Whether or not Draupnir can temporarily take control of any eligible account from the local homeserver who's in the room
  111. # (with enough permissions) to "make" a user an admin.
  112. #
  113. # This only works if a local user with enough admin permissions is present in the room.
  114. enableMakeRoomAdminCommand: false
  115. # Misc options for command handling and commands
  116. commands:
  117. # Whether or not the `!draupnir` prefix is necessary to submit commands.
  118. #
  119. # If `true`, will allow commands like `!ban`, `!help`, etc.
  120. #
  121. # Note: Draupnir can also be pinged by display name instead of having to use
  122. # the !draupnir prefix. For example, "my_moderator_bot: ban @spammer:example.org"
  123. # will address only my_moderator_bot.
  124. allowNoPrefix: false
  125. # Any additional bot prefixes that Draupnir will listen to. i.e. adding `mod` will allow `!mod help`.
  126. additionalPrefixes:
  127. - "draupnir-bot"
  128. - "draupnir_bot"
  129. - "draupnir"
  130. # Whether or not commands with a wildcard (*) will require an additional `--force` argument
  131. # in the command to be able to be submitted.
  132. confirmWildcardBan: true
  133. # The default reasons to be prompted with if the reason is missing from a ban command.
  134. ban:
  135. defaultReasons:
  136. - "spam"
  137. - "brigading"
  138. - "harassment"
  139. - "disagreement"
  140. # Configuration specific to certain toggle-able protections
  141. #protections:
  142. # # Configuration for the wordlist plugin, which can ban users based if they say certain
  143. # # blocked words shortly after joining.
  144. # wordlist:
  145. # # A list of case-insensitive keywords that the WordList protection will watch for from new users.
  146. # #
  147. # # WordList will ban users who use these words when first joining a room, so take caution when selecting them.
  148. # #
  149. # # For advanced usage, regex can also be used, see the following links for more information;
  150. # # - https://www.digitalocean.com/community/tutorials/an-introduction-to-regular-expressions
  151. # # - https://regexr.com/
  152. # # - https://regexone.com/
  153. # words:
  154. # - "LoReM"
  155. # - "IpSuM"
  156. # - "DoLoR"
  157. # - "aMeT"
  158. #
  159. # # For how long (in minutes) the user is "new" to the WordList plugin.
  160. # #
  161. # # After this time, the user will no longer be banned for using a word in the above wordlist.
  162. # #
  163. # # Set to zero to disable the timeout and make users *always* appear "new".
  164. # # (users will always be banned if they say a bad word)
  165. # minutesBeforeTrusting: 20
  166. # Options for advanced monitoring of the health of the bot.
  167. health:
  168. # healthz options. These options are best for use in container environments
  169. # like Kubernetes to detect how healthy the service is. The bot will report
  170. # that it is unhealthy until it is able to process user requests. Typically
  171. # this means that it'll flag itself as unhealthy for a number of minutes
  172. # before saying "Now monitoring rooms" and flagging itself healthy.
  173. #
  174. # Health is flagged through HTTP status codes, defined below.
  175. healthz:
  176. # Whether the healthz integration should be enabled (default false)
  177. enabled: false
  178. # The port to expose the webserver on. Defaults to 8080.
  179. port: 8080
  180. # The address to listen for requests on. Defaults to all addresses.
  181. address: "0.0.0.0"
  182. # The path to expose the monitoring endpoint at. Defaults to `/healthz`
  183. endpoint: "/healthz"
  184. # The HTTP status code which reports that the bot is healthy/ready to
  185. # process requests. Typically this should not be changed. Defaults to
  186. # 200.
  187. healthyStatus: 200
  188. # The HTTP status code which reports that the bot is not healthy/ready.
  189. # Defaults to 418.
  190. unhealthyStatus: 418
  191. # Options for exposing web APIs.
  192. #web:
  193. # # Whether to enable web APIs.
  194. # enabled: false
  195. #
  196. # # The port to expose the webserver on. Defaults to 8080.
  197. # port: 8080
  198. #
  199. # # The address to listen for requests on. Defaults to only the current
  200. # # computer.
  201. # address: localhost
  202. #
  203. # # Alternative setting to open to the entire web. Be careful,
  204. # # as this will increase your security perimeter:
  205. # #
  206. # # address: "0.0.0.0"
  207. #
  208. # # A web API designed to intercept Matrix API
  209. # # POST /_matrix/client/r0/rooms/{roomId}/report/{eventId}
  210. # # and display readable abuse reports in the moderation room.
  211. # #
  212. # # If you wish to take advantage of this feature, you will need
  213. # # to configure a reverse proxy, see e.g. test/nginx.conf
  214. # abuseReporting:
  215. # # Whether to enable this feature.
  216. # enabled: false
  217. # Whether or not to actively poll synapse for abuse reports, to be used
  218. # instead of intercepting client calls to synapse's abuse endpoint, when that
  219. # isn't possible/practical.
  220. pollReports: false
  221. # Whether or not new reports, received either by webapi or polling,
  222. # should be printed to our managementRoom.
  223. displayReports: false