Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

241 líneas
12 KiB

  1. #jinja2: lstrip_blocks: "True"
  2. # Homeserver details.
  3. homeserver:
  4. # The address that this appservice can use to connect to the homeserver.
  5. address: {{ matrix_mautrix_slack_homeserver_address | to_json }}
  6. # The domain of the homeserver (for MXIDs, etc).
  7. domain: {{ matrix_mautrix_slack_homeserver_domain | to_json }}
  8. # What software is the homeserver running?
  9. # Standard Matrix homeservers like Synapse, Dendrite and Conduit should just use "standard" here.
  10. software: standard
  11. # The URL to push real-time bridge status to.
  12. # If set, the bridge will make POST requests to this URL whenever a user's slack connection state changes.
  13. # The bridge will use the appservice as_token to authorize requests.
  14. status_endpoint: null
  15. # Endpoint for reporting per-message status.
  16. message_send_checkpoint_endpoint: null
  17. # Does the homeserver support https://github.com/matrix-org/matrix-spec-proposals/pull/2246?
  18. async_media: false
  19. # Application service host/registration related details.
  20. # Changing these values requires regeneration of the registration.
  21. appservice:
  22. # The address that the homeserver can use to connect to this appservice.
  23. address: {{ matrix_mautrix_slack_appservice_address | to_json }}
  24. # The hostname and port where this appservice should listen.
  25. hostname: 0.0.0.0
  26. port: 8080
  27. # Database config.
  28. database:
  29. # The database type. "sqlite3-fk-wal" and "postgres" are supported.
  30. type: {{ matrix_mautrix_slack_appservice_database_type|to_json }}
  31. # The database URI.
  32. # SQLite: A raw file path is supported, but `file:<path>?_txlock=immediate` is recommended.
  33. # https://github.com/mattn/go-sqlite3#connection-string
  34. # Postgres: Connection string. For example, postgres://user:password@host/database?sslmode=disable
  35. # To connect via Unix socket, use something like postgres:///dbname?host=/var/run/postgresql
  36. uri: {{ matrix_mautrix_slack_appservice_database_uri|to_json }}
  37. # Maximum number of connections. Mostly relevant for Postgres.
  38. max_open_conns: 20
  39. max_idle_conns: 2
  40. # Maximum connection idle time and lifetime before they're closed. Disabled if null.
  41. # Parsed with https://pkg.go.dev/time#ParseDuration
  42. max_conn_idle_time: null
  43. max_conn_lifetime: null
  44. # The unique ID of this appservice.
  45. id: slack
  46. # Appservice bot details.
  47. bot:
  48. # Username of the appservice bot.
  49. username: {{ matrix_mautrix_slack_appservice_bot_username|to_json }}
  50. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  51. # to leave display name/avatar as-is.
  52. displayname: Slack bridge bot
  53. avatar: mxc://maunium.net/pVtzLmChZejGxLqmXtQjFxem
  54. # Whether or not to receive ephemeral events via appservice transactions.
  55. # Requires MSC2409 support (i.e. Synapse 1.22+).
  56. # You should disable bridge -> sync_with_custom_puppets when this is enabled.
  57. ephemeral_events: true
  58. # Should incoming events be handled asynchronously?
  59. # This may be necessary for large public instances with lots of messages going through.
  60. # However, messages will not be guaranteed to be bridged in the same order they were sent in.
  61. async_transactions: false
  62. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  63. as_token: {{ matrix_mautrix_slack_appservice_token | to_json }}
  64. hs_token: {{ matrix_mautrix_slack_homeserver_token | to_json }}
  65. # Bridge config
  66. bridge:
  67. # Localpart template of MXIDs for Slack users.
  68. # {{ '{{.}}' }} is replaced with the internal ID of the Slack user.
  69. username_template: "{{ 'slack_{{.}}' }}"
  70. # Displayname template for Slack users.
  71. # TODO: document variables
  72. displayname_template: "{{ '{{.RealName}} (S)' }}"
  73. bot_displayname_template: "{{ '{{.Name}} (bot)' }}"
  74. channel_name_template: "{{ '#{{.Name}} ({{.TeamName}})' }}"
  75. portal_message_buffer: 128
  76. # Should the bridge send a read receipt from the bridge bot when a message has been sent to Slack?
  77. delivery_receipts: true
  78. # Whether the bridge should send the message status as a custom com.beeper.message_send_status event.
  79. message_status_events: false
  80. # Whether the bridge should send error notices via m.notice events when a message fails to bridge.
  81. message_error_notices: true
  82. # Should the bridge sync with double puppeting to receive EDUs that aren't normally sent to appservices.
  83. sync_with_custom_puppets: false
  84. # Should the bridge update the m.direct account data event when double puppeting is enabled.
  85. # Note that updating the m.direct event is not atomic (except with mautrix-asmux)
  86. # and is therefore prone to race conditions.
  87. sync_direct_chat_list: false
  88. # Servers to always allow double puppeting from
  89. double_puppet_server_map:
  90. "{{ matrix_mautrix_slack_homeserver_domain }}": {{ matrix_mautrix_slack_homeserver_address }}
  91. # Allow using double puppeting from any server with a valid client .well-known file.
  92. double_puppet_allow_discovery: false
  93. # Shared secrets for https://github.com/devture/matrix-synapse-shared-secret-auth
  94. #
  95. # If set, double puppeting will be enabled automatically for local users
  96. # instead of users having to find an access token and run `login-matrix`
  97. # manually.
  98. login_shared_secret_map: {{ matrix_mautrix_slack_bridge_login_shared_secret_map|to_json }}
  99. message_handling_timeout:
  100. # Send an error message after this timeout, but keep waiting for the response until the deadline.
  101. # This is counted from the origin_server_ts, so the warning time is consistent regardless of the source of delay.
  102. # If the message is older than this when it reaches the bridge, the message won't be handled at all.
  103. error_after: 10s
  104. # Drop messages after this timeout. They may still go through if the message got sent to the servers.
  105. # This is counted from the time the bridge starts handling the message.
  106. deadline: 60s
  107. # The prefix for commands. Only required in non-management rooms.
  108. command_prefix: "{{ matrix_mautrix_slack_command_prefix }}"
  109. # Messages sent upon joining a management room.
  110. # Markdown is supported. The defaults are listed below.
  111. management_room_text:
  112. # Sent when joining a room.
  113. welcome: "Hello, I'm a Slack bridge bot."
  114. # Sent when joining a management room and the user is already logged in.
  115. welcome_connected: "Use `help` for help."
  116. # Sent when joining a management room and the user is not logged in.
  117. welcome_unconnected: "Use `help` for help, or `login-token` or `login-password` to log in."
  118. # Optional extra text sent when joining a management room.
  119. additional_help: ""
  120. backfill:
  121. # Allow backfilling at all? Requires MSC2716 support on homeserver.
  122. enable: false
  123. # If a backfilled chat is older than this number of hours, mark it as read even if it's unread on Slack.
  124. # Set to -1 to let any chat be unread.
  125. unread_hours_threshold: 720
  126. # Number of messages to immediately backfill when creating a portal.
  127. immediate_messages: 10
  128. # Settings for incremental backfill of history.
  129. incremental:
  130. # Maximum number of messages to backfill per batch.
  131. messages_per_batch: 100
  132. # The number of seconds to wait after backfilling the batch of messages.
  133. post_batch_delay: 20
  134. # The maximum number of messages to backfill per portal, split by the chat type.
  135. # If set to -1, all messages in the chat will eventually be backfilled.
  136. max_messages:
  137. # Channels
  138. channel: -1
  139. # Group direct messages
  140. group_dm: -1
  141. # 1:1 direct messages
  142. dm: -1
  143. # End-to-bridge encryption support options.
  144. #
  145. # See https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html for more info.
  146. encryption:
  147. # Allow encryption, work in group chat rooms with e2ee enabled
  148. allow: {{ matrix_mautrix_slack_bridge_encryption_allow|to_json }}
  149. # Default to encryption, force-enable encryption in all portals the bridge creates
  150. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  151. default: {{ matrix_mautrix_slack_bridge_encryption_default|to_json }}
  152. # Whether to use MSC2409/MSC3202 instead of /sync long polling for receiving encryption-related data.
  153. appservice: false
  154. # Require encryption, drop any unencrypted messages.
  155. require: false
  156. # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
  157. # You must use a client that supports requesting keys from other users to use this feature.
  158. allow_key_sharing: {{ matrix_mautrix_slack_bridge_encryption_key_sharing_allow|to_json }}
  159. # What level of device verification should be required from users?
  160. #
  161. # Valid levels:
  162. # unverified - Send keys to all device in the room.
  163. # cross-signed-untrusted - Require valid cross-signing, but trust all cross-signing keys.
  164. # cross-signed-tofu - Require valid cross-signing, trust cross-signing keys on first use (and reject changes).
  165. # cross-signed-verified - Require valid cross-signing, plus a valid user signature from the bridge bot.
  166. # Note that creating user signatures from the bridge bot is not currently possible.
  167. # verified - Require manual per-device verification
  168. # (currently only possible by modifying the `trust` column in the `crypto_device` database table).
  169. verification_levels:
  170. # Minimum level for which the bridge should send keys to when bridging messages from WhatsApp to Matrix.
  171. receive: unverified
  172. # Minimum level that the bridge should accept for incoming Matrix messages.
  173. send: unverified
  174. # Minimum level that the bridge should require for accepting key requests.
  175. share: cross-signed-tofu
  176. # Options for Megolm room key rotation. These options allow you to
  177. # configure the m.room.encryption event content. See:
  178. # https://spec.matrix.org/v1.3/client-server-api/#mroomencryption for
  179. # more information about that event.
  180. rotation:
  181. # Enable custom Megolm room key rotation settings. Note that these
  182. # settings will only apply to rooms created after this option is
  183. # set.
  184. enable_custom: false
  185. # The maximum number of milliseconds a session should be used
  186. # before changing it. The Matrix spec recommends 604800000 (a week)
  187. # as the default.
  188. milliseconds: 604800000
  189. # The maximum number of messages that should be sent with a given a
  190. # session before changing it. The Matrix spec recommends 100 as the
  191. # default.
  192. messages: 100
  193. # Settings for provisioning API
  194. provisioning:
  195. # Prefix for the provisioning API paths.
  196. prefix: /_matrix/provision
  197. # Shared secret for authentication. If set to "generate", a random secret will be generated,
  198. # or if set to "disable", the provisioning API will be disabled.
  199. shared_secret: generate
  200. # Permissions for using the bridge.
  201. # Permitted values:
  202. # relay - Talk through the relaybot (if enabled), no access otherwise
  203. # user - Access to use the bridge to chat with a Slack account.
  204. # admin - User level and some additional administration tools
  205. # Permitted keys:
  206. # * - All Matrix users
  207. # domain - All users on that homeserver
  208. # mxid - Specific user
  209. permissions: {{ matrix_mautrix_slack_bridge_permissions|to_json }}
  210. logging:
  211. directory: ./logs
  212. file_name_format: ''
  213. file_date_format: "2006-01-02"
  214. file_mode: 384
  215. timestamp_format: Jan _2, 2006 15:04:05
  216. print_level: {{ matrix_mautrix_slack_logging_level | to_json }}
  217. print_json: false
  218. file_json: false