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

210 строки
8.4 KiB

  1. #jinja2: lstrip_blocks: True
  2. # Network-specific config options (iMessage via RustPush)
  3. network:
  4. # Displayname template for iMessage contacts.
  5. # Available variables:
  6. # .FirstName, .LastName, .Nickname
  7. # .Phone, .Email, .ID
  8. displayname_template: {{ matrix_rustpush_bridge_network_displayname_template | to_json }}
  9. # How many days back to look for chats during initial sync.
  10. # Default is 365 (1 year). Set to 0 to use the default.
  11. initial_sync_days: {{ matrix_rustpush_bridge_initial_sync_days | to_json }}
  12. # Set to false to disable CloudKit backfill globally
  13. cloudkit_backfill: {{ matrix_rustpush_bridge_cloudkit_backfill | to_json }}
  14. backfill_source: cloudkit
  15. # Enable or disable video transcoding
  16. video_transcoding: {{ matrix_rustpush_bridge_video_transcoding | to_json }}
  17. # Enable or disable HEIC conversion
  18. heic_conversion: {{ matrix_rustpush_bridge_heic_conversion | to_json }}
  19. heic_jpeg_quality: 95
  20. # Set to true to disable Facetime support globally
  21. disable_facetime: {{ matrix_rustpush_bridge_disable_facetime | to_json }}
  22. # Set to false to disable Statuskit support globally
  23. statuskit_notifications: {{ matrix_rustpush_bridge_statuskit_notifications | to_json }}
  24. statuskit_share_on_startup: {{ matrix_rustpush_bridge_statuskit_share_on_startup | to_json }}
  25. # Config options that affect the central bridge module.
  26. bridge:
  27. # The prefix for commands. Only required in non-management rooms.
  28. command_prefix: {{ matrix_rustpush_bridge_bridge_command_prefix | to_json }}
  29. # Should the bridge create a space for each login containing the rooms that account is in?
  30. personal_filtering_spaces: true
  31. # Whether the bridge should set names and avatars explicitly for DM portals.
  32. private_chat_portal_meta: true
  33. # Should events be handled asynchronously within portal rooms?
  34. async_events: false
  35. # Should every user have their own portals rather than sharing them?
  36. split_portals: false
  37. # Should the bridge resend `m.bridge` events to all portals on startup?
  38. resend_bridge_info: false
  39. # Should leaving Matrix rooms be bridged as leaving groups on the remote network?
  40. bridge_matrix_leave: false
  41. # Should room tags only be synced when creating the portal?
  42. tag_only_on_create: true
  43. # List of tags to allow bridging.
  44. only_bridge_tags: [m.favourite, m.lowpriority]
  45. # Should room mute status only be synced when creating the portal?
  46. mute_only_on_create: true
  47. # What should be done to portal rooms when a user logs out or is logged out?
  48. cleanup_on_logout:
  49. enabled: false
  50. manual:
  51. private: nothing
  52. relayed: nothing
  53. shared_no_users: nothing
  54. shared_has_users: nothing
  55. bad_credentials:
  56. private: nothing
  57. relayed: nothing
  58. shared_no_users: nothing
  59. shared_has_users: nothing
  60. # Settings for relay mode
  61. relay:
  62. enabled: false
  63. admin_only: true
  64. default_relays: []
  65. message_formats:
  66. m.text: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b>: {{ .Message }}{% endraw %}"
  67. m.notice: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b>: {{ .Message }}{% endraw %}"
  68. m.emote: "{% raw %}* <b>{{ .Sender.DisambiguatedName }}</b> {{ .Message }}{% endraw %}"
  69. m.file: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent a file{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  70. m.image: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent an image{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  71. m.audio: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent an audio file{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  72. m.video: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent a video{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  73. m.location: "{% raw %}<b>{{ .Sender.DisambiguatedName }}</b> sent a location{{ if .Caption }}: {{ .Caption }}{{ end }}{% endraw %}"
  74. displayname_format: "{% raw %}{{ .DisambiguatedName }}{% endraw %}"
  75. # Permissions for using the bridge.
  76. permissions: {{ matrix_rustpush_bridge_bridge_permissions | to_json }}
  77. # Config for the bridge's database.
  78. database:
  79. type: postgres
  80. uri: {{ matrix_rustpush_bridge_database_uri | to_json }}
  81. max_open_conns: 5
  82. max_idle_conns: 1
  83. max_conn_idle_time: null
  84. max_conn_lifetime: null
  85. # Homeserver details.
  86. homeserver:
  87. address: {{ matrix_rustpush_bridge_homeserver_address | to_json }}
  88. domain: {{ matrix_rustpush_bridge_homeserver_domain | to_json }}
  89. software: standard
  90. status_endpoint:
  91. message_send_checkpoint_endpoint:
  92. async_media: {{ matrix_rustpush_bridge_homeserver_async_media | to_json }}
  93. websocket: false
  94. ping_interval_seconds: 0
  95. # Application service host/registration related details.
  96. appservice:
  97. address: {{ matrix_rustpush_bridge_appservice_address | to_json }}
  98. public_address: {{ matrix_rustpush_bridge_appservice_public_address | to_json }}
  99. hostname: 0.0.0.0
  100. port: 8081
  101. id: rustpush-bridge
  102. bot:
  103. username: {{ matrix_rustpush_bridge_appservice_bot_username | to_json }}
  104. displayname: {{ matrix_rustpush_bridge_appservice_bot_displayname | to_json(ensure_ascii=False) }}
  105. avatar: {{ matrix_rustpush_bridge_appservice_bot_avatar | to_json }}
  106. ephemeral_events: true
  107. async_transactions: false
  108. as_token: {{ matrix_rustpush_bridge_appservice_token | to_json }}
  109. hs_token: {{ matrix_rustpush_bridge_homeserver_token | to_json }}
  110. # Localpart template of MXIDs for remote users.
  111. username_template: {{ matrix_rustpush_bridge_appservice_username_template | to_json }}
  112. # Config options that affect the Matrix connector of the bridge.
  113. matrix:
  114. message_status_events: false
  115. delivery_receipts: false
  116. message_error_notices: true
  117. sync_direct_chat_list: true
  118. federate_rooms: {{ matrix_rustpush_bridge_matrix_federate_rooms | to_json }}
  119. upload_file_threshold: 5242880
  120. # Segment-compatible analytics endpoint for tracking some events.
  121. analytics:
  122. token: null
  123. url: https://api.segment.io/v1/track
  124. user_id: null
  125. # Settings for provisioning API
  126. provisioning:
  127. prefix: /_matrix/provision
  128. shared_secret: {{ matrix_rustpush_bridge_provisioning_shared_secret | to_json }}
  129. allow_matrix_auth: true
  130. debug_endpoints: false
  131. # Settings for backfilling messages.
  132. backfill:
  133. enabled: {{ matrix_rustpush_bridge_backfill_enabled | to_json }}
  134. max_initial_messages: {{ matrix_rustpush_bridge_backfill_max_initial_messages | to_json }}
  135. max_catchup_messages: {{ matrix_rustpush_bridge_backfill_max_catchup_messages | to_json }}
  136. unread_hours_threshold: 720
  137. threads:
  138. max_initial_messages: 50
  139. queue:
  140. enabled: false
  141. batch_size: 100
  142. batch_delay: 20
  143. max_batches: -1
  144. max_batches_override: {}
  145. # Settings for enabling double puppeting
  146. double_puppet:
  147. servers: {}
  148. allow_discovery: false
  149. secrets: {{ matrix_rustpush_bridge_double_puppet_secrets | to_json }}
  150. # End-to-bridge encryption support options.
  151. encryption:
  152. allow: {{ matrix_rustpush_bridge_bridge_encryption_allow | to_json }}
  153. default: {{ matrix_rustpush_bridge_bridge_encryption_default | to_json }}
  154. require: {{ matrix_rustpush_bridge_bridge_encryption_require | to_json }}
  155. appservice: {{ matrix_rustpush_bridge_bridge_encryption_appservice | to_json }}
  156. msc4190: {{ matrix_rustpush_bridge_msc4190_enabled | to_json }}
  157. self_sign: {{ matrix_rustpush_bridge_self_sign_enabled | to_json }}
  158. allow_key_sharing: {{ matrix_rustpush_bridge_bridge_encryption_key_sharing_allow | to_json }}
  159. pickle_key: {{ matrix_rustpush_bridge_bridge_encryption_pickle_key | to_json }}
  160. delete_keys:
  161. delete_outbound_on_ack: false
  162. dont_store_outbound: false
  163. ratchet_on_decrypt: false
  164. delete_fully_used_on_decrypt: false
  165. delete_prev_on_new_session: false
  166. delete_on_device_delete: false
  167. periodically_delete_expired: false
  168. delete_outdated_inbound: false
  169. verification_levels:
  170. receive: unverified
  171. send: unverified
  172. share: cross-signed-tofu
  173. rotation:
  174. enable_custom: false
  175. milliseconds: 604800000
  176. messages: 100
  177. disable_device_change_key_rotation: false
  178. # Logging config.
  179. logging:
  180. min_level: {{ matrix_rustpush_bridge_logging_level | to_json }}
  181. writers:
  182. - type: stdout
  183. format: pretty-colored