Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

255 linhas
10 KiB

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