Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

486 lines
29 KiB

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