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

457 строки
27 KiB

  1. #jinja2: lstrip_blocks: True
  2. # Network-specific config options
  3. network:
  4. # Displayname template for FB users. Available variables:
  5. # .DisplayName - The display name set by the user.
  6. # .Username - The username set by the user.
  7. # .ID - The internal user ID of the user.
  8. displayname_template: {{ matrix_bridge_mautrix_meta_messenger_bridge_displayname_template | to_json }}
  9. # Static proxy address (HTTP or SOCKS5) for connecting to Meta.
  10. proxy:
  11. # If using a Tor proxy in the field above, you can set this to connect to
  12. # facebookwkhpilnemxj7asaniu7vnjjbiltxjqhye3mhbshg7kx5tfyd.onion instead of facebook.com.
  13. tor: {{ (matrix_bridge_mautrix_meta_messenger_meta_mode == 'facebook-tor') | to_json }}
  14. # HTTP endpoint to request new proxy address from, for dynamically assigned proxies.
  15. # The endpoint must return a JSON body with a string field called proxy_url.
  16. get_proxy_from:
  17. # Should media be proxied too?
  18. proxy_media: false
  19. # Should E2EE messages be proxied too?
  20. proxy_e2ee: false
  21. # Should Messenger Lite login traffic be proxied?
  22. proxy_messenger_lite: true
  23. # Should other traffic, not configured here, be proxied?
  24. proxy_other: true
  25. # Minimum interval between full reconnects in seconds, default is 1 hour
  26. min_full_reconnect_interval_seconds: 3600
  27. # Interval to force refresh the connection (full reconnect), default is 20 hours. Set 0 to disable force refreshes.
  28. force_refresh_interval_seconds: 72000
  29. # Should connection state be cached to allow quicker restarts?
  30. cache_connection_state: false
  31. # Should the bridge mark you as online when you send typing
  32. # notifications? Currently, this only has an effect for E2EE chats on
  33. # Facebook/Messenger. Full presence bridging is not supported.
  34. send_presence_on_typing: false
  35. # Should view-once messages be disabled entirely?
  36. disable_view_once: false
  37. # Should FB marketplace chats have a separate space inside the main Facebook space?
  38. marketplace_space: true
  39. # Log raw Bloks payloads even at debug level, with any user identifiers or credentials redacted.
  40. log_redacted_bloks_payloads: false
  41. # Thread backfill settings for syncing older conversations
  42. thread_backfill:
  43. # Number of batches (pages) to backfill (-1 for unlimited, 0 to disable)
  44. batch_count: -1
  45. # Delay between fetching each batch of threads (to avoid rate limiting)
  46. batch_delay: 2s
  47. # Config options that affect the central bridge module.
  48. bridge:
  49. # The prefix for commands. Only required in non-management rooms.
  50. command_prefix: {{ matrix_bridge_mautrix_meta_messenger_bridge_command_prefix | to_json }}
  51. # Should the bridge create a space for each login containing the rooms that account is in?
  52. personal_filtering_spaces: {{ matrix_bridge_mautrix_meta_messenger_bridge_personal_filtering_spaces | to_json }}
  53. # Whether the bridge should set names and avatars explicitly for DM portals.
  54. # This is only necessary when using clients that don't support MSC4171.
  55. private_chat_portal_meta: false
  56. # Should events be handled asynchronously within portal rooms?
  57. # If true, events may end up being out of order, but slow events won't block other ones.
  58. async_events: false
  59. # Should every user have their own portals rather than sharing them?
  60. # By default, users who are in the same group on the remote network will be
  61. # in the same Matrix room bridged to that group. If this is set to true,
  62. # every user will get their own Matrix room instead.
  63. split_portals: false
  64. # Should the bridge resend `m.bridge` events to all portals on startup?
  65. resend_bridge_info: false
  66. # Should leaving Matrix rooms be bridged as leaving groups on the remote network?
  67. bridge_matrix_leave: false
  68. # Should room tags only be synced when creating the portal? Tags mean things like favorite/pin and archive/low priority.
  69. # Tags currently can't be synced back to the remote network, so a continuous sync means tagging from Matrix will be undone.
  70. tag_only_on_create: true
  71. # Should room mute status only be synced when creating the portal?
  72. # Like tags, mutes can't currently be synced back to the remote network.
  73. mute_only_on_create: true
  74. # What should be done to portal rooms when a user logs out or is logged out?
  75. # Permitted values:
  76. # nothing - Do nothing, let the user stay in the portals
  77. # kick - Remove the user from the portal rooms, but don't delete them
  78. # unbridge - Remove all ghosts in the room and disassociate it from the remote chat
  79. # delete - Remove all ghosts and users from the room (i.e. delete it)
  80. cleanup_on_logout:
  81. # Should cleanup on logout be enabled at all?
  82. enabled: false
  83. # Settings for manual logouts (explicitly initiated by the Matrix user)
  84. manual:
  85. # Action for private portals which will never be shared with other Matrix users.
  86. private: nothing
  87. # Action for portals with a relay user configured.
  88. relayed: nothing
  89. # Action for portals which may be shared, but don't currently have any other Matrix users.
  90. shared_no_users: nothing
  91. # Action for portals which have other logged-in Matrix users.
  92. shared_has_users: nothing
  93. # Settings for credentials being invalidated (initiated by the remote network, possibly through user action).
  94. # Keys have the same meanings as in the manual section.
  95. bad_credentials:
  96. private: nothing
  97. relayed: nothing
  98. shared_no_users: nothing
  99. shared_has_users: nothing
  100. # Settings for relay mode
  101. relay:
  102. # Whether relay mode should be allowed. If allowed, the set-relay command can be used to turn any
  103. # authenticated user into a relaybot for that chat.
  104. enabled: {{ matrix_bridge_mautrix_meta_messenger_bridge_relay_enabled | to_json }}
  105. # Should only admins be allowed to set themselves as relay users?
  106. # If true, non-admins can only set users listed in default_relays as relays in a room.
  107. admin_only: {{ matrix_bridge_mautrix_meta_messenger_bridge_relay_admin_only | to_json }}
  108. # List of user login IDs which anyone can set as a relay, as long as the relay user is in the room.
  109. default_relays: {{ matrix_bridge_mautrix_meta_messenger_bridge_relay_default_relays | to_json }}
  110. # The formats to use when sending messages via the relaybot.
  111. # Available variables:
  112. # .Sender.UserID - The Matrix user ID of the sender.
  113. # .Sender.Displayname - The display name of the sender (if set).
  114. # .Sender.RequiresDisambiguation - Whether the sender's name may be confused with the name of another user in the room.
  115. # .Sender.DisambiguatedName - The disambiguated name of the sender. This will be the displayname if set,
  116. # plus the user ID in parentheses if the displayname is not unique.
  117. # If the displayname is not set, this is just the user ID.
  118. # .Message - The `formatted_body` field of the message.
  119. # .Caption - The `formatted_body` field of the message, if it's a caption. Otherwise an empty string.
  120. # .FileName - The name of the file being sent.
  121. message_formats:
  122. m.text: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b>: {{ .Message }}{% endraw %}"
  123. m.notice: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b>: {{ .Message }}{% endraw %}"
  124. m.emote: "{% raw %}* <b>{{ .Sender.DisambiguatedName }}</b> {{ .Message }}{% endraw %}"
  125. m.file: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent a file{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  126. m.image: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent an image{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  127. m.audio: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent an audio file{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  128. m.video: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent a video{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  129. m.location: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent a location{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  130. # For networks that support per-message displaynames (i.e. Slack and Discord), the template for those names.
  131. # This has all the Sender variables available under message_formats (but without the .Sender prefix).
  132. # Note that you need to manually remove the displayname from message_formats above.
  133. displayname_format: "{% raw %}{{ .DisambiguatedName }}{% endraw %}"
  134. # Permissions for using the bridge.
  135. # Permitted values:
  136. # relay - Talk through the relaybot (if enabled), no access otherwise
  137. # commands - Access to use commands in the bridge, but not login.
  138. # user - Access to use the bridge with puppeting.
  139. # admin - Full access, user level with some additional administration tools.
  140. # Permitted keys:
  141. # * - All Matrix users
  142. # domain - All users on that homeserver
  143. # mxid - Specific user
  144. permissions: {{ matrix_bridge_mautrix_meta_messenger_bridge_permissions | to_json }}
  145. # Config for the bridge's database.
  146. database:
  147. # The database type. "sqlite3-fk-wal" and "postgres" are supported.
  148. type: {{ matrix_bridge_mautrix_meta_messenger_appservice_database_type | to_json }}
  149. # The database URI.
  150. # SQLite: A raw file path is supported, but `file:<path>?_txlock=immediate` is recommended.
  151. # https://github.com/mattn/go-sqlite3#connection-string
  152. # Postgres: Connection string. For example, postgres://user:password@host/database?sslmode=disable
  153. # To connect via Unix socket, use something like postgres:///dbname?host=/var/run/postgresql
  154. uri: {{ matrix_bridge_mautrix_meta_messenger_appservice_database_uri | to_json }}
  155. # Maximum number of connections.
  156. max_open_conns: 5
  157. max_idle_conns: 1
  158. # Maximum connection idle time and lifetime before they're closed. Disabled if null.
  159. # Parsed with https://pkg.go.dev/time#ParseDuration
  160. max_conn_idle_time: null
  161. max_conn_lifetime: null
  162. # Homeserver details.
  163. homeserver:
  164. # The address that this appservice can use to connect to the homeserver.
  165. # Local addresses without HTTPS are generally recommended when the bridge is running on the same machine,
  166. # but https also works if they run on different machines.
  167. address: {{ matrix_bridge_mautrix_meta_messenger_homeserver_address | to_json }}
  168. # The domain of the homeserver (also known as server_name, used for MXIDs, etc).
  169. domain: {{ matrix_bridge_mautrix_meta_messenger_homeserver_domain | to_json }}
  170. # What software is the homeserver running?
  171. # Standard Matrix homeservers like Synapse, Dendrite and Conduit should just use "standard" here.
  172. software: standard
  173. # The URL to push real-time bridge status to.
  174. # If set, the bridge will make POST requests to this URL whenever a user's remote network connection state changes.
  175. # The bridge will use the appservice as_token to authorize requests.
  176. status_endpoint:
  177. # Endpoint for reporting per-message status.
  178. # If set, the bridge will make POST requests to this URL when processing a message from Matrix.
  179. # It will make one request when receiving the message (step BRIDGE), one after decrypting if applicable
  180. # (step DECRYPTED) and one after sending to the remote network (step REMOTE). Errors will also be reported.
  181. # The bridge will use the appservice as_token to authorize requests.
  182. message_send_checkpoint_endpoint:
  183. # Does the homeserver support https://github.com/matrix-org/matrix-spec-proposals/pull/2246?
  184. async_media: {{ matrix_bridge_mautrix_meta_messenger_homeserver_async_media | to_json }}
  185. # Should the bridge use a websocket for connecting to the homeserver?
  186. # The server side is currently not documented anywhere and is only implemented by mautrix-wsproxy,
  187. # mautrix-asmux (deprecated), and hungryserv (proprietary).
  188. websocket: false
  189. # How often should the websocket be pinged? Pinging will be disabled if this is zero.
  190. ping_interval_seconds: 0
  191. # Application service host/registration related details.
  192. # Changing these values requires regeneration of the registration (except when noted otherwise)
  193. appservice:
  194. # The address that the homeserver can use to connect to this appservice.
  195. address: {{ matrix_bridge_mautrix_meta_messenger_appservice_address | to_json }}
  196. # A public address that external services can use to reach this appservice.
  197. # This value doesn't affect the registration file.
  198. public_address: {{ matrix_bridge_mautrix_meta_messenger_bridge_public_address | to_json }}
  199. # The hostname and port where this appservice should listen.
  200. # For Docker, you generally have to change the hostname to 0.0.0.0.
  201. hostname: 0.0.0.0
  202. port: 29319
  203. # The unique ID of this appservice.
  204. id: {{ matrix_bridge_mautrix_meta_messenger_appservice_id | to_json }}
  205. # Appservice bot details.
  206. bot:
  207. # Username of the appservice bot.
  208. username: {{ matrix_bridge_mautrix_meta_messenger_appservice_username | to_json }}
  209. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  210. # to leave display name/avatar as-is.
  211. displayname: {{ matrix_bridge_mautrix_meta_messenger_appservice_displayname | to_json(ensure_ascii=False) }}
  212. avatar: {{ matrix_bridge_mautrix_meta_messenger_appservice_avatar | to_json }}
  213. # Whether to receive ephemeral events via appservice transactions.
  214. ephemeral_events: true
  215. # Should incoming events be handled asynchronously?
  216. # This may be necessary for large public instances with lots of messages going through.
  217. # However, messages will not be guaranteed to be bridged in the same order they were sent in.
  218. # This value doesn't affect the registration file.
  219. async_transactions: false
  220. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  221. as_token: {{ matrix_bridge_mautrix_meta_messenger_appservice_token | to_json }}
  222. hs_token: {{ matrix_bridge_mautrix_meta_messenger_homeserver_token | to_json }}
  223. # Localpart template of MXIDs for remote users.
  224. # {% raw %}{{.}}{% endraw %} is replaced with the internal ID of the user.
  225. username_template: {{ matrix_bridge_mautrix_meta_messenger_bridge_username_template | to_json }}
  226. # Config options that affect the Matrix connector of the bridge.
  227. matrix:
  228. # Whether the bridge should send the message status as a custom com.beeper.message_send_status event.
  229. message_status_events: false
  230. # Whether the bridge should send a read receipt after successfully bridging a message.
  231. delivery_receipts: false
  232. # Whether the bridge should send error notices via m.notice events when a message fails to bridge.
  233. message_error_notices: true
  234. # Whether the bridge should update the m.direct account data event when double puppeting is enabled.
  235. sync_direct_chat_list: false
  236. # Whether created rooms should have federation enabled. If false, created portal rooms
  237. # will never be federated. Changing this option requires recreating rooms.
  238. federate_rooms: {{ matrix_bridge_mautrix_meta_messenger_bridge_federate_rooms | to_json }}
  239. # The threshold as bytes after which the bridge should roundtrip uploads via the disk
  240. # rather than keeping the whole file in memory.
  241. upload_file_threshold: 5242880
  242. # Segment-compatible analytics endpoint for tracking some events, like provisioning API login and encryption errors.
  243. analytics:
  244. # API key to send with tracking requests. Tracking is disabled if this is null.
  245. token: null
  246. # Address to send tracking requests to.
  247. url: https://api.segment.io/v1/track
  248. # Optional user ID for tracking events. If null, defaults to using Matrix user ID.
  249. user_id: null
  250. # Settings for provisioning API
  251. provisioning:
  252. # Prefix for the provisioning API paths.
  253. prefix: /_matrix/provision
  254. # Shared secret for authentication. If set to "generate" or null, a random secret will be generated,
  255. # or if set to "disable", the provisioning API will be disabled.
  256. shared_secret: {{ matrix_bridge_mautrix_meta_messenger_provisioning_shared_secret | to_json }}
  257. # Whether to allow provisioning API requests to be authed using Matrix access tokens.
  258. # This follows the same rules as double puppeting to determine which server to contact to check the token,
  259. # which means that by default, it only works for users on the same server as the bridge.
  260. allow_matrix_auth: true
  261. # Enable debug API at /debug with provisioning authentication.
  262. debug_endpoints: false
  263. # Some networks require publicly accessible media download links (e.g. for user avatars when using Discord webhooks).
  264. # These settings control whether the bridge will provide such public media access.
  265. public_media:
  266. # Should public media be enabled at all?
  267. # The public_address field under the appservice section MUST be set when enabling public media.
  268. enabled: false
  269. # A key for signing public media URLs.
  270. # If set to "generate", a random key will be generated.
  271. signing_key: {{ matrix_bridge_mautrix_meta_messenger_public_media_signing_key | to_json }}
  272. # Number of seconds that public media URLs are valid for.
  273. # If set to 0, URLs will never expire.
  274. expiry: 0
  275. # Length of hash to use for public media URLs. Must be between 0 and 32.
  276. hash_length: 32
  277. # Settings for converting remote media to custom mxc:// URIs instead of reuploading.
  278. # More details can be found at https://docs.mau.fi/bridges/go/discord/direct-media.html
  279. direct_media:
  280. # Should custom mxc:// URIs be used instead of reuploading media?
  281. enabled: false
  282. # The server name to use for the custom mxc:// URIs.
  283. # This server name will effectively be a real Matrix server, it just won't implement anything other than media.
  284. # You must either set up .well-known delegation from this domain to the bridge, or proxy the domain directly to the bridge.
  285. server_name: media.example.com
  286. # Optionally a custom .well-known response. This defaults to `server_name:443`
  287. well_known_response:
  288. # Optionally specify a custom prefix for the media ID part of the MXC URI.
  289. media_id_prefix:
  290. # If the remote network supports media downloads over HTTP, then the bridge will use MSC3860/MSC3916
  291. # media download redirects if the requester supports it. Optionally, you can force redirects
  292. # and not allow proxying at all by setting this to false.
  293. # This option does nothing if the remote network does not support media downloads over HTTP.
  294. allow_proxy: true
  295. # Matrix server signing key to make the federation tester pass, same format as synapse's .signing.key file.
  296. # This key is also used to sign the mxc:// URIs to ensure only the bridge can generate them.
  297. server_key: ""
  298. # Settings for backfilling messages.
  299. # Note that the exact way settings are applied depends on the network connector.
  300. # See https://docs.mau.fi/bridges/general/backfill.html for more details.
  301. backfill:
  302. # Whether to do backfilling at all.
  303. enabled: {{ matrix_bridge_mautrix_meta_messenger_backfill_enabled | to_json }}
  304. # Maximum number of messages to backfill in empty rooms.
  305. max_initial_messages: {{ matrix_bridge_mautrix_meta_messenger_backfill_max_initial_messages | to_json}}
  306. # Maximum number of missed messages to backfill after bridge restarts.
  307. max_catchup_messages: {{ matrix_bridge_mautrix_meta_messenger_backfill_max_catchup_messages | to_json }}
  308. # If a backfilled chat is older than this number of hours,
  309. # mark it as read even if it's unread on the remote network.
  310. unread_hours_threshold: {{ matrix_bridge_mautrix_meta_messenger_backfill_unread_hours_threshold | to_json }}
  311. # Settings for backfilling threads within other backfills.
  312. threads:
  313. # Maximum number of messages to backfill in a new thread.
  314. max_initial_messages: {{ matrix_bridge_mautrix_meta_messenger_backfill_threads_max_initial_messages | to_json }}
  315. # Settings for the backwards backfill queue. This only applies when connecting to
  316. # Beeper as standard Matrix servers don't support inserting messages into history.
  317. queue:
  318. # Should the backfill queue be enabled?
  319. enabled: false
  320. # Number of messages to backfill in one batch.
  321. batch_size: 100
  322. # Delay between batches in seconds.
  323. batch_delay: 20
  324. # Maximum number of batches to backfill per portal.
  325. # If set to -1, all available messages will be backfilled.
  326. max_batches: -1
  327. # Optional network-specific overrides for max batches.
  328. # Interpretation of this field depends on the network connector.
  329. max_batches_override: {}
  330. # Settings for enabling double puppeting
  331. double_puppet:
  332. # Servers to always allow double puppeting from.
  333. # This is only for other servers and should NOT contain the server the bridge is on.
  334. servers: {}
  335. # Whether to allow client API URL discovery for other servers. When using this option,
  336. # users on other servers can use double puppeting even if their server URLs aren't
  337. # explicitly added to the servers map above.
  338. allow_discovery: false
  339. # Shared secrets for automatic double puppeting.
  340. # See https://docs.mau.fi/bridges/general/double-puppeting.html for instructions.
  341. secrets: {{ matrix_bridge_mautrix_meta_messenger_double_puppet_secrets | to_json }}
  342. # End-to-bridge encryption support options.
  343. #
  344. # See https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html for more info.
  345. encryption:
  346. # Whether to enable encryption at all. If false, the bridge will not function in encrypted rooms.
  347. allow: {{ matrix_bridge_mautrix_meta_messenger_bridge_encryption_allow | to_json }}
  348. # Whether to force-enable encryption in all bridged rooms.
  349. default: {{ matrix_bridge_mautrix_meta_messenger_bridge_encryption_default | to_json }}
  350. # Whether to require all messages to be encrypted and drop any unencrypted messages.
  351. require: {{ matrix_bridge_mautrix_meta_messenger_bridge_encryption_require | to_json }}
  352. # Whether to use MSC2409/MSC3202 instead of /sync long polling for receiving encryption-related data.
  353. # This option is not yet compatible with standard Matrix servers like Synapse and should not be used.
  354. appservice: {{ matrix_bridge_mautrix_meta_messenger_bridge_encryption_appservice | to_json }}
  355. # Whether to use MSC4190 instead of appservice login to create the bridge bot device.
  356. # Requires the homeserver to support MSC4190 and the device masquerading parts of MSC3202.
  357. # Only relevant when using end-to-bridge encryption, required when using encryption with next-gen auth (MSC3861).
  358. # Changing this option requires updating the appservice registration file.
  359. msc4190: {{ matrix_bridge_mautrix_meta_messenger_msc4190_enabled | to_json }}
  360. # Whether to enable self-signing for bridges (Only the bridge bot uses this for now)
  361. # Requires msc4190 to replace keys on reset
  362. self_sign: {{ matrix_bridge_mautrix_meta_messenger_self_sign_enabled | to_json }}
  363. # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
  364. # You must use a client that supports requesting keys from other users to use this feature.
  365. allow_key_sharing: {{ matrix_bridge_mautrix_meta_messenger_bridge_encryption_allow_key_sharing | to_json }}
  366. # Pickle key for encrypting encryption keys in the bridge database.
  367. # If set to generate, a random key will be generated.
  368. pickle_key: mautrix.bridge.e2ee
  369. # Options for deleting megolm sessions from the bridge.
  370. delete_keys:
  371. # Beeper-specific: delete outbound sessions when hungryserv confirms
  372. # that the user has uploaded the key to key backup.
  373. delete_outbound_on_ack: false
  374. # Don't store outbound sessions in the inbound table.
  375. dont_store_outbound: false
  376. # Ratchet megolm sessions forward after decrypting messages.
  377. ratchet_on_decrypt: false
  378. # Delete fully used keys (index >= max_messages) after decrypting messages.
  379. delete_fully_used_on_decrypt: false
  380. # Delete previous megolm sessions from same device when receiving a new one.
  381. delete_prev_on_new_session: false
  382. # Delete megolm sessions received from a device when the device is deleted.
  383. delete_on_device_delete: false
  384. # Periodically delete megolm sessions when 2x max_age has passed since receiving the session.
  385. periodically_delete_expired: false
  386. # Delete inbound megolm sessions that don't have the received_at field used for
  387. # automatic ratcheting and expired session deletion. This is meant as a migration
  388. # to delete old keys prior to the bridge update.
  389. delete_outdated_inbound: false
  390. # What level of device verification should be required from users?
  391. #
  392. # Valid levels:
  393. # unverified - Send keys to all device in the room.
  394. # cross-signed-untrusted - Require valid cross-signing, but trust all cross-signing keys.
  395. # cross-signed-tofu - Require valid cross-signing, trust cross-signing keys on first use (and reject changes).
  396. # cross-signed-verified - Require valid cross-signing, plus a valid user signature from the bridge bot.
  397. # Note that creating user signatures from the bridge bot is not currently possible.
  398. # verified - Require manual per-device verification
  399. # (currently only possible by modifying the `trust` column in the `crypto_device` database table).
  400. verification_levels:
  401. # Minimum level for which the bridge should send keys to when bridging messages from the remote network to Matrix.
  402. receive: unverified
  403. # Minimum level that the bridge should accept for incoming Matrix messages.
  404. send: unverified
  405. # Minimum level that the bridge should require for accepting key requests.
  406. share: cross-signed-tofu
  407. # Options for Megolm room key rotation. These options allow you to configure the m.room.encryption event content.
  408. # See https://spec.matrix.org/v1.10/client-server-api/#mroomencryption for more information about that event.
  409. rotation:
  410. # Enable custom Megolm room key rotation settings. Note that these
  411. # settings will only apply to rooms created after this option is set.
  412. enable_custom: false
  413. # The maximum number of milliseconds a session should be used
  414. # before changing it. The Matrix spec recommends 604800000 (a week)
  415. # as the default.
  416. milliseconds: 604800000
  417. # The maximum number of messages that should be sent with a given a
  418. # session before changing it. The Matrix spec recommends 100 as the
  419. # default.
  420. messages: 100
  421. # Disable rotating keys when a user's devices change?
  422. # You should not enable this option unless you understand all the implications.
  423. disable_device_change_key_rotation: false
  424. # Logging config. See https://github.com/tulir/zeroconfig for details.
  425. logging:
  426. min_level: {{ matrix_bridge_mautrix_meta_messenger_logging_min_level | to_json }}
  427. writers:
  428. - type: stdout
  429. format: pretty