Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

257 lines
10 KiB

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