Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

247 líneas
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_homeserver_url }}"
  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_homeserver_url }}"
  7. # Matrix Access Token to use, Mjolnir will only use this if pantalaimon.use is false.
  8. accessToken: "{{ matrix_bot_mjolnir_access_token }}"
  9. # Options related to Pantalaimon (https://github.com/matrix-org/pantalaimon)
  10. #pantalaimon:
  11. # # Whether or not Mjolnir 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. # # Mjolnir 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: mjolnir
  22. #
  23. # # The password Mjolnir 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 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: "!example:example.org"
  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 }}"
  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. # 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 Mjolnir problems.
  52. logLevel: "INFO"
  53. # Whether or not Mjolnir should synchronize policy lists immediately after startup.
  54. # Equivalent to running '!mjolnir sync'.
  55. syncOnStartup: true
  56. # Whether or not Mjolnir should check moderation permissions in all protected rooms on startup.
  57. # Equivalent to running `!mjolnir verify`.
  58. verifyPermissionsOnStartup: true
  59. # Whether or not Mjolnir should actually apply bans and policy lists,
  60. # turn on to trial some untrusted configuration or lists.
  61. noop: false
  62. # Whether Mjolnir 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. Mjolnir 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 '!mjolnir 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 Mjölnir 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 Mjölnir 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 Mjolnir is
  108. # a global server administrator, and the bot's server is a Synapse instance.
  109. #admin:
  110. # # Whether or not Mjolnir 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 `!mjolnir` prefix is necessary to submit commands.
  118. #
  119. # If `true`, will allow commands like `!ban`, `!help`, etc.
  120. #
  121. # Note: Mjolnir can also be pinged by display name instead of having to use
  122. # the !mjolnir 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 Mjolnir will listen to. i.e. adding `mod` will allow `!mod help`.
  126. additionalPrefixes:
  127. - "mjolnir_bot"
  128. # Whether or not commands with a wildcard (*) will require an additional `--force` argument
  129. # in the command to be able to be submitted.
  130. confirmWildcardBan: true
  131. # Configuration specific to certain toggle-able protections
  132. #protections:
  133. # # Configuration for the wordlist plugin, which can ban users based if they say certain
  134. # # blocked words shortly after joining.
  135. # wordlist:
  136. # # A list of case-insensitive keywords that the WordList protection will watch for from new users.
  137. # #
  138. # # WordList will ban users who use these words when first joining a room, so take caution when selecting them.
  139. # #
  140. # # For advanced usage, regex can also be used, see the following links for more information;
  141. # # - https://www.digitalocean.com/community/tutorials/an-introduction-to-regular-expressions
  142. # # - https://regexr.com/
  143. # # - https://regexone.com/
  144. # words:
  145. # - "LoReM"
  146. # - "IpSuM"
  147. # - "DoLoR"
  148. # - "aMeT"
  149. #
  150. # # For how long (in minutes) the user is "new" to the WordList plugin.
  151. # #
  152. # # After this time, the user will no longer be banned for using a word in the above wordlist.
  153. # #
  154. # # Set to zero to disable the timeout and make users *always* appear "new".
  155. # # (users will always be banned if they say a bad word)
  156. # minutesBeforeTrusting: 20
  157. # Options for advanced monitoring of the health of the bot.
  158. health:
  159. # healthz options. These options are best for use in container environments
  160. # like Kubernetes to detect how healthy the service is. The bot will report
  161. # that it is unhealthy until it is able to process user requests. Typically
  162. # this means that it'll flag itself as unhealthy for a number of minutes
  163. # before saying "Now monitoring rooms" and flagging itself healthy.
  164. #
  165. # Health is flagged through HTTP status codes, defined below.
  166. healthz:
  167. # Whether the healthz integration should be enabled (default false)
  168. enabled: false
  169. # The port to expose the webserver on. Defaults to 8080.
  170. port: 8080
  171. # The address to listen for requests on. Defaults to all addresses.
  172. address: "0.0.0.0"
  173. # The path to expose the monitoring endpoint at. Defaults to `/healthz`
  174. endpoint: "/healthz"
  175. # The HTTP status code which reports that the bot is healthy/ready to
  176. # process requests. Typically this should not be changed. Defaults to
  177. # 200.
  178. healthyStatus: 200
  179. # The HTTP status code which reports that the bot is not healthy/ready.
  180. # Defaults to 418.
  181. unhealthyStatus: 418
  182. # Options for exposing web APIs.
  183. #web:
  184. # # Whether to enable web APIs.
  185. # enabled: false
  186. #
  187. # # The port to expose the webserver on. Defaults to 8080.
  188. # port: 8080
  189. #
  190. # # The address to listen for requests on. Defaults to only the current
  191. # # computer.
  192. # address: localhost
  193. #
  194. # # Alternative setting to open to the entire web. Be careful,
  195. # # as this will increase your security perimeter:
  196. # #
  197. # # address: "0.0.0.0"
  198. #
  199. # # A web API designed to intercept Matrix API
  200. # # POST /_matrix/client/r0/rooms/{roomId}/report/{eventId}
  201. # # and display readable abuse reports in the moderation room.
  202. # #
  203. # # If you wish to take advantage of this feature, you will need
  204. # # to configure a reverse proxy, see e.g. test/nginx.conf
  205. # abuseReporting:
  206. # # Whether to enable this feature.
  207. # enabled: false
  208. # Whether or not to actively poll synapse for abuse reports, to be used
  209. # instead of intercepting client calls to synapse's abuse endpoint, when that
  210. # isn't possible/practical.
  211. pollReports: false
  212. # Whether or not new reports, received either by webapi or polling,
  213. # should be printed to our managementRoom.
  214. displayReports: false