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

431 строка
25 KiB

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