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.
 
 

530 regels
29 KiB

  1. #jinja2: lstrip_blocks: True
  2. # Network-specific config options
  3. network:
  4. # Get your own API keys at https://my.telegram.org/apps
  5. api_id: {{ matrix_mautrix_telegram_api_id | to_json }}
  6. api_hash: {{ matrix_mautrix_telegram_api_hash | to_json }}
  7. # Device info shown in the Telegram device list.
  8. device_info:
  9. device_model: mautrix-telegram
  10. system_version:
  11. app_version: auto
  12. lang_code: en
  13. system_lang_code: en
  14. # Settings for converting animated stickers.
  15. animated_sticker:
  16. # Format to which animated stickers should be converted.
  17. #
  18. # disable - no conversion, send as-is (gzipped lottie)
  19. # png - converts to non-animated png (fastest),
  20. # gif - converts to animated gif
  21. # webm - converts to webm video, requires ffmpeg executable with vp9 codec
  22. # and webm container support
  23. # webp - converts to animated webp, requires ffmpeg executable with webp
  24. # codec/container support
  25. target: gif
  26. # Should video stickers be converted to the specified format as well?
  27. convert_from_webm: false
  28. # Arguments for converter. All converters take width and height.
  29. args:
  30. width: 256
  31. height: 256
  32. fps: 25 # only for webm, webp and gif (2, 5, 10, 20 or 25 recommended)
  33. # Settings for syncing the member list for portals.
  34. member_list:
  35. # Maximum number of members to sync per portal when starting up. Other
  36. # members will be synced when they send messages. The maximum is 10000,
  37. # after which the Telegram server will not send any more members.
  38. #
  39. # -1 means no limit (which means it's limited to 10000 by the server)
  40. max_initial_sync: 100
  41. # Whether or not to sync the member list in broadcast channels. If
  42. # disabled, members will still be synced when they send messages.
  43. #
  44. # If no channel admins have logged into the bridge, the bridge won't be
  45. # able to sync the member list regardless of this setting.
  46. sync_broadcast_channels: false
  47. # Whether or not to skip deleted members when syncing members.
  48. skip_deleted: true
  49. # Settings for pings to the Telegram server.
  50. ping:
  51. # The interval (in seconds) between pings.
  52. interval_seconds: 30
  53. # The timeout (in seconds) for a single ping.
  54. timeout_seconds: 10
  55. # Proxy settings
  56. proxy:
  57. # Allowed types: disabled, socks5, mtproxy
  58. type: disabled
  59. # Proxy IP address/domain name and port.
  60. address: "127.0.0.1:1080"
  61. # Proxy authentication (optional). Put MTProxy secret in password field.
  62. username:
  63. password:
  64. sync:
  65. # Number of most recently active dialogs to check when syncing chats.
  66. # Set to -1 to remove limit.
  67. update_limit: 100
  68. # Number of most recently active dialogs to create portals for when syncing chats.
  69. # Set to -1 to remove limit.
  70. create_limit: 15
  71. # Number of chats to sync immediately on login before the data export is accepted.
  72. # The create_limit above still applies. This is ignored if takeout.dialog_sync is false.
  73. login_sync_limit: 15
  74. # Whether or not to sync and create portals for direct chats at startup.
  75. direct_chats: true
  76. takeout:
  77. # Should the bridge use the data export mode for syncing the full chat list?
  78. # If true, login_sync_limit of chats is synced immediately on login,
  79. # then the rest are synced after the takeout is accepted.
  80. dialog_sync: false
  81. # Should the bridge use the data export mode for forward backfilling messages?
  82. # This should be set to true if the forward backfill limits are set to high values,
  83. # but is probably not necessary otherwise.
  84. forward_backfill: false
  85. # Should the bridge use the data export mode for backward backfilling messages?
  86. # This only affects the backfill queue, which is only available on Beeper.
  87. backward_backfill: false
  88. # Maximum number of participants in chats to bridge. Only applies when the
  89. # portal is being created. If there are more members when trying to create a
  90. # room, the room creation will be cancelled.
  91. #
  92. # -1 means no limit (which means all chats can be bridged)
  93. max_member_count: -1
  94. # Should personal avatars (that are only visible to specific users) be allowed?
  95. contact_avatars: false
  96. # Should contact names be updated from any source even if a name is already set?
  97. # Note that contact names will still be used if there's no other name available.
  98. contact_names: false
  99. # Should the bridge send all unicode reactions as custom emoji reactions to
  100. # Telegram? By default, the bridge only uses custom emojis for unicode emojis
  101. # that aren't allowed in reactions.
  102. always_custom_emoji_reaction: false
  103. # The avatar to use for the Telegram Saved Messages chat
  104. saved_message_avatar: mxc://maunium.net/XhhfHoPejeneOngMyBbtyWDk
  105. # Create a new room and tombstone the old one when upgrading rooms
  106. always_tombstone_on_supergroup_migration: false
  107. # Maximum number of pixels in an image before sending to Telegram as a
  108. # document. Defaults to 4096x4096 = 16777216.
  109. image_as_file_pixels: 16777216
  110. # Should view-once messages be disabled entirely?
  111. disable_view_once: false
  112. # Displayname template for Telegram users.
  113. displayname_template: {{ matrix_mautrix_telegram_network_displayname_template | to_json }}
  114. # Config options that affect the central bridge module.
  115. bridge:
  116. # The prefix for commands. Only required in non-management rooms.
  117. command_prefix: {{ matrix_mautrix_telegram_command_prefix | to_json }}
  118. # Should the bridge create a space for each login containing the rooms that account is in?
  119. personal_filtering_spaces: {{ matrix_mautrix_telegram_bridge_personal_filtering_spaces | to_json }}
  120. # Whether the bridge should set names and avatars explicitly for DM portals.
  121. # This is only necessary when using clients that don't support MSC4171.
  122. private_chat_portal_meta: true
  123. # Should events be handled asynchronously within portal rooms?
  124. # If true, events may end up being out of order, but slow events won't block other ones.
  125. # This is not yet safe to use.
  126. async_events: false
  127. # Should every user have their own portals rather than sharing them?
  128. # By default, users who are in the same group on the remote network will be
  129. # in the same Matrix room bridged to that group. If this is set to true,
  130. # every user will get their own Matrix room instead.
  131. split_portals: false
  132. # Should the bridge resend `m.bridge` events to all portals on startup?
  133. resend_bridge_info: false
  134. # Should leaving Matrix rooms be bridged as leaving groups on the remote network?
  135. bridge_matrix_leave: false
  136. # Should room tags only be synced when creating the portal? Tags mean things like favorite/pin and archive/low priority.
  137. # Tags currently can't be synced back to the remote network, so a continuous sync means tagging from Matrix will be undone.
  138. tag_only_on_create: true
  139. # Should room mute status only be synced when creating the portal?
  140. # Like tags, mutes can't currently be synced back to the remote network.
  141. mute_only_on_create: true
  142. # What should be done to portal rooms when a user logs out or is logged out?
  143. # Permitted values:
  144. # nothing - Do nothing, let the user stay in the portals
  145. # kick - Remove the user from the portal rooms, but don't delete them
  146. # unbridge - Remove all ghosts in the room and disassociate it from the remote chat
  147. # delete - Remove all ghosts and users from the room (i.e. delete it)
  148. cleanup_on_logout:
  149. # Should cleanup on logout be enabled at all?
  150. enabled: false
  151. # Settings for manual logouts (explicitly initiated by the Matrix user)
  152. manual:
  153. # Action for private portals which will never be shared with other Matrix users.
  154. private: nothing
  155. # Action for portals with a relay user configured.
  156. relayed: nothing
  157. # Action for portals which may be shared, but don't currently have any other Matrix users.
  158. shared_no_users: nothing
  159. # Action for portals which have other logged-in Matrix users.
  160. shared_has_users: nothing
  161. # Settings for credentials being invalidated (initiated by the remote network, possibly through user action).
  162. # Keys have the same meanings as in the manual section.
  163. bad_credentials:
  164. private: nothing
  165. relayed: nothing
  166. shared_no_users: nothing
  167. shared_has_users: nothing
  168. # Settings for relay mode
  169. relay:
  170. # Whether relay mode should be allowed. If allowed, the set-relay command can be used to turn any
  171. # authenticated user into a relaybot for that chat.
  172. enabled: {{ matrix_mautrix_telegram_bridge_relay_enabled | to_json }}
  173. # Should only admins be allowed to set themselves as relay users?
  174. # If true, non-admins can only set users listed in default_relays as relays in a room.
  175. admin_only: {{ matrix_mautrix_telegram_bridge_relay_admin_only | to_json }}
  176. # List of user login IDs which anyone can set as a relay, as long as the relay user is in the room.
  177. default_relays: {{ matrix_mautrix_telegram_bridge_relay_default_relays | to_json }}
  178. # The formats to use when sending messages via the relaybot.
  179. # Available variables:
  180. # .Sender.UserID - The Matrix user ID of the sender.
  181. # .Sender.Displayname - The display name of the sender (if set).
  182. # .Sender.RequiresDisambiguation - Whether the sender's name may be confused with the name of another user in the room.
  183. # .Sender.DisambiguatedName - The disambiguated name of the sender. This will be the displayname if set,
  184. # plus the user ID in parentheses if the displayname is not unique.
  185. # If the displayname is not set, this is just the user ID.
  186. # .Message - The `formatted_body` field of the message.
  187. # .Caption - The `formatted_body` field of the message, if it's a caption. Otherwise an empty string.
  188. # .FileName - The name of the file being sent.
  189. message_formats:
  190. m.text: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b>: {{ .Message }}{% endraw %}"
  191. m.notice: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b>: {{ .Message }}{% endraw %}"
  192. m.emote: "{% raw %}* <b>{{ .Sender.DisambiguatedName }}</b> {{ .Message }}{% endraw %}"
  193. m.file: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent a file{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  194. m.image: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent an image{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  195. m.audio: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent an audio file{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  196. m.video: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent a video{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  197. m.location: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent a location{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  198. # Permissions for using the bridge.
  199. # Permitted values:
  200. # relay - Talk through the relaybot (if enabled), no access otherwise
  201. # commands - Access to use commands in the bridge, but not login.
  202. # user - Access to use the bridge with puppeting.
  203. # admin - Full access, user level with some additional administration tools.
  204. # Permitted keys:
  205. # * - All Matrix users
  206. # domain - All users on that homeserver
  207. # mxid - Specific user
  208. permissions: {{ matrix_mautrix_telegram_bridge_permissions|to_json }}
  209. # Config for the bridge's database.
  210. database:
  211. # The database type. "sqlite3-fk-wal" and "postgres" are supported.
  212. type: {{ matrix_mautrix_telegram_appservice_database_type | to_json }}
  213. # The database URI.
  214. # SQLite: A raw file path is supported, but `file:<path>?_txlock=immediate` is recommended.
  215. # https://github.com/mattn/go-sqlite3#connection-string
  216. # Postgres: Connection string. For example, postgres://user:password@host/database?sslmode=disable
  217. # To connect via Unix socket, use something like postgres:///dbname?host=/var/run/postgresql
  218. uri: {{ matrix_mautrix_telegram_appservice_database_uri | to_json }}
  219. # Maximum number of connections.
  220. max_open_conns: 20
  221. max_idle_conns: 2
  222. # Maximum connection idle time and lifetime before they're closed. Disabled if null.
  223. # Parsed with https://pkg.go.dev/time#ParseDuration
  224. max_conn_idle_time: null
  225. max_conn_lifetime: null
  226. # Homeserver details.
  227. homeserver:
  228. # The address that this appservice can use to connect to the homeserver.
  229. # Local addresses without HTTPS are generally recommended when the bridge is running on the same machine,
  230. # but https also works if they run on different machines.
  231. address: {{ matrix_mautrix_telegram_homeserver_address | to_json }}
  232. # The domain of the homeserver (also known as server_name, used for MXIDs, etc).
  233. domain: {{ matrix_mautrix_telegram_homeserver_domain | to_json }}
  234. # What software is the homeserver running?
  235. # Standard Matrix homeservers like Synapse, Dendrite and Conduit should just use "standard" here.
  236. software: standard
  237. # The URL to push real-time bridge status to.
  238. # If set, the bridge will make POST requests to this URL whenever a user's remote network connection state changes.
  239. # The bridge will use the appservice as_token to authorize requests.
  240. status_endpoint:
  241. # Endpoint for reporting per-message status.
  242. # If set, the bridge will make POST requests to this URL when processing a message from Matrix.
  243. # It will make one request when receiving the message (step BRIDGE), one after decrypting if applicable
  244. # (step DECRYPTED) and one after sending to the remote network (step REMOTE). Errors will also be reported.
  245. # The bridge will use the appservice as_token to authorize requests.
  246. message_send_checkpoint_endpoint:
  247. # Does the homeserver support https://github.com/matrix-org/matrix-spec-proposals/pull/2246?
  248. async_media: {{ matrix_mautrix_telegram_homeserver_async_media | to_json }}
  249. # Should the bridge use a websocket for connecting to the homeserver?
  250. # The server side is currently not documented anywhere and is only implemented by mautrix-wsproxy,
  251. # mautrix-asmux (deprecated), and hungryserv (proprietary).
  252. websocket: false
  253. # How often should the websocket be pinged? Pinging will be disabled if this is zero.
  254. ping_interval_seconds: 0
  255. # Application service host/registration related details.
  256. # Changing these values requires regeneration of the registration (except when noted otherwise)
  257. appservice:
  258. # The address that the homeserver can use to connect to this appservice.
  259. # Like the homeserver address, a local non-https address is recommended when the bridge is on the same machine.
  260. # If the bridge is elsewhere, you must secure the connection yourself (e.g. with https or wireguard)
  261. # If you want to use https, you need to use a reverse proxy. The bridge does not have TLS support built in.
  262. address: {{ matrix_mautrix_telegram_appservice_address | to_json }}
  263. # A public address that external services can use to reach this appservice.
  264. # This is only needed for things like public media. A reverse proxy is generally necessary when using this field.
  265. # This value doesn't affect the registration file.
  266. public_address: ""
  267. # The hostname and port where this appservice should listen.
  268. # For Docker, you generally have to change the hostname to 0.0.0.0.
  269. hostname: 0.0.0.0
  270. port: 8080
  271. # The unique ID of this appservice.
  272. id: telegram
  273. # Appservice bot details.
  274. bot:
  275. # Username of the appservice bot.
  276. username: {{ matrix_mautrix_telegram_appservice_bot_username | to_json }}
  277. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  278. # to leave display name/avatar as-is.
  279. displayname: Telegram bridge bot
  280. avatar: mxc://maunium.net/tJCRmUyJDsgRNgqhOgoiHWbX
  281. # Whether to receive ephemeral events via appservice transactions.
  282. ephemeral_events: true
  283. # Should incoming events be handled asynchronously?
  284. # This may be necessary for large public instances with lots of messages going through.
  285. # However, messages will not be guaranteed to be bridged in the same order they were sent in.
  286. # This value doesn't affect the registration file.
  287. async_transactions: false
  288. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  289. as_token: {{ matrix_mautrix_telegram_appservice_token | to_json }}
  290. hs_token: {{ matrix_mautrix_telegram_homeserver_token | to_json }}
  291. # Localpart template of MXIDs for remote users.
  292. # {% raw %}{{.}}{% endraw %} is replaced with the internal ID of the user.
  293. username_template: "{% raw %}telegram_{{.}}{% endraw %}"
  294. # Config options that affect the Matrix connector of the bridge.
  295. matrix:
  296. # Whether the bridge should send the message status as a custom com.beeper.message_send_status event.
  297. message_status_events: false
  298. # Whether the bridge should send a read receipt after successfully bridging a message.
  299. delivery_receipts: false
  300. # Whether the bridge should send error notices via m.notice events when a message fails to bridge.
  301. message_error_notices: true
  302. # Whether the bridge should update the m.direct account data event when double puppeting is enabled.
  303. sync_direct_chat_list: true
  304. # Whether created rooms should have federation enabled. If false, created portal rooms
  305. # will never be federated. Changing this option requires recreating rooms.
  306. federate_rooms: {{ matrix_mautrix_telegram_federate_rooms|to_json }}
  307. # The threshold as bytes after which the bridge should roundtrip uploads via the disk
  308. # rather than keeping the whole file in memory.
  309. upload_file_threshold: 5242880
  310. # Segment-compatible analytics endpoint for tracking some events, like provisioning API login and encryption errors.
  311. analytics:
  312. # API key to send with tracking requests. Tracking is disabled if this is null.
  313. token: null
  314. # Address to send tracking requests to.
  315. url: https://api.segment.io/v1/track
  316. # Optional user ID for tracking events. If null, defaults to using Matrix user ID.
  317. user_id: null
  318. # Settings for provisioning API
  319. provisioning:
  320. # Prefix for the provisioning API paths.
  321. prefix: /_matrix/provision
  322. # Shared secret for authentication. If set to "generate" or null, a random secret will be generated,
  323. # or if set to "disable", the provisioning API will be disabled.
  324. shared_secret: {{ matrix_mautrix_telegram_provisioning_shared_secret | to_json }}
  325. # Whether to allow provisioning API requests to be authed using Matrix access tokens.
  326. # This follows the same rules as double puppeting to determine which server to contact to check the token,
  327. # which means that by default, it only works for users on the same server as the bridge.
  328. allow_matrix_auth: true
  329. # Enable debug API at /debug with provisioning authentication.
  330. debug_endpoints: false
  331. # Some networks require publicly accessible media download links (e.g. for user avatars when using Discord webhooks).
  332. # These settings control whether the bridge will provide such public media access.
  333. public_media:
  334. # Should public media be enabled at all?
  335. # The public_address field under the appservice section MUST be set when enabling public media.
  336. enabled: false
  337. # A key for signing public media URLs.
  338. # If set to "generate", a random key will be generated.
  339. signing_key: {{ matrix_mautrix_telegram_public_media_signing_key | to_json }}
  340. # Number of seconds that public media URLs are valid for.
  341. # If set to 0, URLs will never expire.
  342. expiry: 0
  343. # Length of hash to use for public media URLs. Must be between 0 and 32.
  344. hash_length: 32
  345. # Settings for converting remote media to custom mxc:// URIs instead of reuploading.
  346. # More details can be found at https://docs.mau.fi/bridges/go/discord/direct-media.html
  347. direct_media:
  348. # Should custom mxc:// URIs be used instead of reuploading media?
  349. enabled: false
  350. # The server name to use for the custom mxc:// URIs.
  351. # This server name will effectively be a real Matrix server, it just won't implement anything other than media.
  352. # You must either set up .well-known delegation from this domain to the bridge, or proxy the domain directly to the bridge.
  353. server_name: telegram-media.example.com
  354. # Optionally a custom .well-known response. This defaults to `server_name:443`
  355. well_known_response:
  356. # Optionally specify a custom prefix for the media ID part of the MXC URI.
  357. media_id_prefix:
  358. # If the remote network supports media downloads over HTTP, then the bridge will use MSC3860/MSC3916
  359. # media download redirects if the requester supports it. Optionally, you can force redirects
  360. # and not allow proxying at all by setting this to false.
  361. # This option does nothing if the remote network does not support media downloads over HTTP.
  362. allow_proxy: true
  363. # Matrix server signing key to make the federation tester pass, same format as synapse's .signing.key file.
  364. # This key is also used to sign the mxc:// URIs to ensure only the bridge can generate them.
  365. server_key: ""
  366. # Settings for backfilling messages.
  367. # Note that the exact way settings are applied depends on the network connector.
  368. # See https://docs.mau.fi/bridges/general/backfill.html for more details.
  369. backfill:
  370. # Whether to do backfilling at all.
  371. enabled: {{ matrix_mautrix_telegram_backfill_enabled | to_json }}
  372. # Maximum number of messages to backfill in empty rooms.
  373. max_initial_messages: 50
  374. # Maximum number of missed messages to backfill after bridge restarts.
  375. max_catchup_messages: 500
  376. # If a backfilled chat is older than this number of hours,
  377. # mark it as read even if it's unread on the remote network.
  378. unread_hours_threshold: 720
  379. # Settings for backfilling threads within other backfills.
  380. threads:
  381. # Maximum number of messages to backfill in a new thread.
  382. max_initial_messages: 50
  383. # Settings for the backwards backfill queue. This only applies when connecting to
  384. # Beeper as standard Matrix servers don't support inserting messages into history.
  385. queue:
  386. # Should the backfill queue be enabled?
  387. enabled: false
  388. # Number of messages to backfill in one batch.
  389. batch_size: 100
  390. # Delay between batches in seconds.
  391. batch_delay: 20
  392. # Maximum number of batches to backfill per portal.
  393. # If set to -1, all available messages will be backfilled.
  394. max_batches: -1
  395. # Optional network-specific overrides for max batches.
  396. # Interpretation of this field depends on the network connector.
  397. max_batches_override: {}
  398. # Settings for enabling double puppeting
  399. double_puppet:
  400. # Servers to always allow double puppeting from.
  401. # This is only for other servers and should NOT contain the server the bridge is on.
  402. servers: {}
  403. # Whether to allow client API URL discovery for other servers. When using this option,
  404. # users on other servers can use double puppeting even if their server URLs aren't
  405. # explicitly added to the servers map above.
  406. allow_discovery: false
  407. # Shared secrets for automatic double puppeting.
  408. # See https://docs.mau.fi/bridges/general/double-puppeting.html for instructions.
  409. secrets: {{ matrix_mautrix_telegram_double_puppet_secrets | to_json }}
  410. # End-to-bridge encryption support options.
  411. #
  412. # See https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html for more info.
  413. encryption:
  414. # Whether to enable encryption at all. If false, the bridge will not function in encrypted rooms.
  415. allow: {{ matrix_mautrix_telegram_bridge_encryption_allow | to_json }}
  416. # Whether to force-enable encryption in all bridged rooms.
  417. default: {{ matrix_mautrix_telegram_bridge_encryption_default | to_json }}
  418. # Whether to require all messages to be encrypted and drop any unencrypted messages.
  419. require: {{ matrix_mautrix_telegram_bridge_encryption_require | to_json }}
  420. # Whether to use MSC2409/MSC3202 instead of /sync long polling for receiving encryption-related data.
  421. # This option is not yet compatible with standard Matrix servers like Synapse and should not be used.
  422. appservice: false
  423. # Whether to use MSC4190 instead of appservice login to create the bridge bot device.
  424. # Requires the homeserver to support MSC4190 and the device masquerading parts of MSC3202.
  425. # Only relevant when using end-to-bridge encryption, required when using encryption with next-gen auth (MSC3861).
  426. # Changing this option requires updating the appservice registration file.
  427. msc4190: {{ matrix_mautrix_telegram_msc4190_enabled | to_json }}
  428. # Whether to enable self-signing for bridges (Only the bridge bot uses this for now)
  429. # Requires msc4190 to replace keys on reset
  430. self_sign: {{ matrix_mautrix_telegram_self_sign_enabled | to_json }}
  431. # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
  432. # You must use a client that supports requesting keys from other users to use this feature.
  433. allow_key_sharing: {{ matrix_mautrix_telegram_bridge_encryption_key_sharing_allow | to_json }}
  434. # Pickle key for encrypting encryption keys in the bridge database.
  435. # If set to generate, a random key will be generated.
  436. pickle_key: {{ matrix_mautrix_telegram_bridge_encryption_pickle_key | to_json }}
  437. # Options for deleting megolm sessions from the bridge.
  438. delete_keys:
  439. # Beeper-specific: delete outbound sessions when hungryserv confirms
  440. # that the user has uploaded the key to key backup.
  441. delete_outbound_on_ack: false
  442. # Don't store outbound sessions in the inbound table.
  443. dont_store_outbound: false
  444. # Ratchet megolm sessions forward after decrypting messages.
  445. ratchet_on_decrypt: false
  446. # Delete fully used keys (index >= max_messages) after decrypting messages.
  447. delete_fully_used_on_decrypt: false
  448. # Delete previous megolm sessions from same device when receiving a new one.
  449. delete_prev_on_new_session: false
  450. # Delete megolm sessions received from a device when the device is deleted.
  451. delete_on_device_delete: false
  452. # Periodically delete megolm sessions when 2x max_age has passed since receiving the session.
  453. periodically_delete_expired: false
  454. # Delete inbound megolm sessions that don't have the received_at field used for
  455. # automatic ratcheting and expired session deletion. This is meant as a migration
  456. # to delete old keys prior to the bridge update.
  457. delete_outdated_inbound: false
  458. # What level of device verification should be required from users?
  459. #
  460. # Valid levels:
  461. # unverified - Send keys to all device in the room.
  462. # cross-signed-untrusted - Require valid cross-signing, but trust all cross-signing keys.
  463. # cross-signed-tofu - Require valid cross-signing, trust cross-signing keys on first use (and reject changes).
  464. # cross-signed-verified - Require valid cross-signing, plus a valid user signature from the bridge bot.
  465. # Note that creating user signatures from the bridge bot is not currently possible.
  466. # verified - Require manual per-device verification
  467. # (currently only possible by modifying the `trust` column in the `crypto_device` database table).
  468. verification_levels:
  469. # Minimum level for which the bridge should send keys to when bridging messages from the remote network to Matrix.
  470. receive: unverified
  471. # Minimum level that the bridge should accept for incoming Matrix messages.
  472. send: unverified
  473. # Minimum level that the bridge should require for accepting key requests.
  474. share: cross-signed-tofu
  475. # Options for Megolm room key rotation. These options allow you to configure the m.room.encryption event content.
  476. # See https://spec.matrix.org/v1.10/client-server-api/#mroomencryption for more information about that event.
  477. rotation:
  478. # Enable custom Megolm room key rotation settings. Note that these
  479. # settings will only apply to rooms created after this option is set.
  480. enable_custom: false
  481. # The maximum number of milliseconds a session should be used
  482. # before changing it. The Matrix spec recommends 604800000 (a week)
  483. # as the default.
  484. milliseconds: 604800000
  485. # The maximum number of messages that should be sent with a given a
  486. # session before changing it. The Matrix spec recommends 100 as the
  487. # default.
  488. messages: 100
  489. # Disable rotating keys when a user's devices change?
  490. # You should not enable this option unless you understand all the implications.
  491. disable_device_change_key_rotation: false
  492. # Logging config. See https://github.com/tulir/zeroconfig for details.
  493. logging:
  494. min_level: {{ matrix_mautrix_telegram_logging_level | to_json }}
  495. writers:
  496. - type: stdout
  497. format: pretty-colored