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.
 
 

248 lines
10 KiB

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