Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

306 wiersze
17 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_signal_homeserver_address }}
  6. # The domain of the homeserver (for MXIDs, etc).
  7. domain: {{ matrix_mautrix_signal_homeserver_domain }}
  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 discord 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. # Should the bridge use a websocket for connecting to the homeserver?
  20. # The server side is currently not documented anywhere and is only implemented by mautrix-wsproxy,
  21. # mautrix-asmux (deprecated), and hungryserv (proprietary).
  22. websocket: false
  23. # How often should the websocket be pinged? Pinging will be disabled if this is zero.
  24. ping_interval_seconds: 0
  25. # Application service host/registration related details.
  26. # Changing these values requires regeneration of the registration.
  27. appservice:
  28. # The address that the homeserver can use to connect to this appservice.
  29. address: {{ matrix_mautrix_signal_appservice_address | to_json }}
  30. # The hostname and port where this appservice should listen.
  31. hostname: 0.0.0.0
  32. port: 8080
  33. # Database config.
  34. database:
  35. # The database type. "sqlite3-fk-wal" and "postgres" are supported.
  36. type: {{ matrix_mautrix_signal_appservice_database_type|to_json }}
  37. # The database URI.
  38. # SQLite: A raw file path is supported, but `file:<path>?_txlock=immediate` is recommended.
  39. # https://github.com/mattn/go-sqlite3#connection-string
  40. # Postgres: Connection string. For example, postgres://user:password@host/database?sslmode=disable
  41. # To connect via Unix socket, use something like postgres:///dbname?host=/var/run/postgresql
  42. uri: {{ matrix_mautrix_signal_appservice_database_uri|to_json }}
  43. # Maximum number of connections. Mostly relevant for Postgres.
  44. max_open_conns: 20
  45. max_idle_conns: 2
  46. # Maximum connection idle time and lifetime before they're closed. Disabled if null.
  47. # Parsed with https://pkg.go.dev/time#ParseDuration
  48. max_conn_idle_time: null
  49. max_conn_lifetime: null
  50. # The unique ID of this appservice.
  51. id: signal
  52. # Appservice bot details.
  53. bot:
  54. # Username of the appservice bot.
  55. username: {{ matrix_mautrix_signal_appservice_bot_username | to_json }}
  56. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  57. # to leave display name/avatar as-is.
  58. displayname: signal bridge bot
  59. avatar: mxc://maunium.net/wPJgTQbZOtpBFmDNkiNEMDUp
  60. # Whether or not to receive ephemeral events via appservice transactions.
  61. # Requires MSC2409 support (i.e. Synapse 1.22+).
  62. ephemeral_events: true
  63. # Should incoming events be handled asynchronously?
  64. # This may be necessary for large public instances with lots of messages going through.
  65. # However, messages will not be guaranteed to be bridged in the same order they were sent in.
  66. async_transactions: false
  67. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  68. as_token: {{ matrix_mautrix_signal_appservice_token | to_json }}
  69. hs_token: {{ matrix_mautrix_signal_homeserver_token | to_json }}
  70. # Prometheus config.
  71. metrics:
  72. # Enable prometheus metrics?
  73. enabled: {{ matrix_mautrix_signal_metrics_enabled | to_json }}
  74. # IP and port where the metrics listener should be. The path is always /metrics
  75. listen: 0.0.0.0:8000
  76. signal:
  77. # Default device name that shows up in the Signal app.
  78. device_name: mautrix-signal
  79. # Bridge config
  80. bridge:
  81. # Localpart template of MXIDs for Signal users.
  82. # {{ '{{.}}' }} is replaced with the internal ID of the Signal user.
  83. username_template: "{{ 'signal_{{.}}' }}"
  84. # Displayname template for Signal users. This is also used as the room name in DMs if private_chat_portal_meta is enabled.
  85. # {% raw %}
  86. # {{.ProfileName}} - The Signal profile name set by the user.
  87. # {{.ContactName}} - The name for the user from your phone's contact list. This is not safe on multi-user instances.
  88. # {{.PhoneNumber}} - The phone number of the user.
  89. # {{.UUID}} - The UUID of the Signal user.
  90. # {{.AboutEmoji}} - The emoji set by the user in their profile.
  91. # {% endraw %}
  92. displayname_template: "{{ '{{or .ProfileName .PhoneNumber "Unknown user"}} (Signal)' }}"
  93. # Whether to explicitly set the avatar and room name for private chat portal rooms.
  94. # If set to `default`, this will be enabled in encrypted rooms and disabled in unencrypted rooms.
  95. # If set to `always`, all DM rooms will have explicit names and avatars set.
  96. # If set to `never`, DM rooms will never have names and avatars set.
  97. private_chat_portal_meta: default
  98. # Should avatars from the user's contact list be used? This is not safe on multi-user instances.
  99. use_contact_avatars: false
  100. # Should the Signal user's phone number be included in the room topic in private chat portal rooms?
  101. number_in_topic: true
  102. # Avatar image for the Note to Self room.
  103. note_to_self_avatar: {{ matrix_mautrix_signal_bridge_note_to_self_avatar | to_json }}
  104. portal_message_buffer: 128
  105. # Should the bridge create a space for each logged-in user and add bridged rooms to it?
  106. # Users who logged in before turning this on should run `!signal sync-space` to create and fill the space for the first time.
  107. personal_filtering_spaces: {{ matrix_mautrix_signal_bridge_personal_filtering_spaces | to_json }}
  108. # Should the bridge send a read receipt from the bridge bot when a message has been sent to Signal?
  109. delivery_receipts: false
  110. # Should Matrix m.notice-type messages be bridged?
  111. bridge_notices: true
  112. # Whether the bridge should send the message status as a custom com.beeper.message_send_status event.
  113. message_status_events: false
  114. # Whether the bridge should send error notices via m.notice events when a message fails to bridge.
  115. message_error_notices: true
  116. # Should the bridge update the m.direct account data event when double puppeting is enabled.
  117. # Note that updating the m.direct event is not atomic (except with mautrix-asmux)
  118. # and is therefore prone to race conditions.
  119. sync_direct_chat_list: false
  120. # Set this to true to tell the bridge to re-send m.bridge events to all rooms on the next run.
  121. # This field will automatically be changed back to false after it, except if the config file is not writable.
  122. resend_bridge_info: false
  123. # Send captions in the same message as images. This will send data compatible with both MSC2530.
  124. # This is currently not supported in most clients.
  125. caption_in_message: false
  126. # Whether or not created rooms should have federation enabled.
  127. # If false, created portal rooms will never be federated.
  128. federate_rooms: {{ matrix_mautrix_signal_federate_rooms|to_json }}
  129. # Servers to always allow double puppeting from
  130. double_puppet_server_map:
  131. "{{ matrix_mautrix_signal_homeserver_domain }}": {{ matrix_mautrix_signal_homeserver_address }}
  132. # Allow using double puppeting from any server with a valid client .well-known file.
  133. double_puppet_allow_discovery: false
  134. # Shared secrets for https://github.com/devture/matrix-synapse-shared-secret-auth
  135. #
  136. # If set, double puppeting will be enabled automatically for local users
  137. # instead of users having to find an access token and run `login-matrix`
  138. # manually.
  139. login_shared_secret_map: {{ matrix_mautrix_signal_bridge_login_shared_secret_map|to_json }}
  140. # Maximum time for handling Matrix events. Duration strings formatted for https://pkg.go.dev/time#ParseDuration
  141. # Null means there's no enforced timeout.
  142. message_handling_timeout:
  143. # Send an error message after this timeout, but keep waiting for the response until the deadline.
  144. # This is counted from the origin_server_ts, so the warning time is consistent regardless of the source of delay.
  145. # If the message is older than this when it reaches the bridge, the message won't be handled at all.
  146. error_after: null
  147. # Drop messages after this timeout. They may still go through if the message got sent to the servers.
  148. # This is counted from the time the bridge starts handling the message.
  149. deadline: 120s
  150. # The prefix for commands. Only required in non-management rooms.
  151. command_prefix: "{{ matrix_mautrix_signal_command_prefix }}"
  152. # Messages sent upon joining a management room.
  153. # Markdown is supported. The defaults are listed below.
  154. management_room_text:
  155. # Sent when joining a room.
  156. welcome: "Hello, I'm a Signal bridge bot."
  157. # Sent when joining a management room and the user is already logged in.
  158. welcome_connected: "Use `help` for help."
  159. # Sent when joining a management room and the user is not logged in.
  160. welcome_unconnected: "Use `help` for help or `login` to log in."
  161. # Optional extra text sent when joining a management room.
  162. additional_help: ""
  163. # End-to-bridge encryption support options.
  164. #
  165. # See https://docs.mau.fi/bridges/general/end-to-bridge-encryption.html for more info.
  166. encryption:
  167. # Allow encryption, work in group chat rooms with e2ee enabled
  168. allow: {{ matrix_mautrix_signal_bridge_encryption_allow|to_json }}
  169. # Default to encryption, force-enable encryption in all portals the bridge creates
  170. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  171. default: {{ matrix_mautrix_signal_bridge_encryption_default|to_json }}
  172. # Whether to use MSC2409/MSC3202 instead of /sync long polling for receiving encryption-related data.
  173. appservice: false
  174. # Require encryption, drop any unencrypted messages.
  175. require: false
  176. # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
  177. # You must use a client that supports requesting keys from other users to use this feature.
  178. allow_key_sharing: {{ matrix_mautrix_signal_bridge_encryption_key_sharing_allow|to_json }}
  179. # Options for deleting megolm sessions from the bridge.
  180. delete_keys:
  181. # Beeper-specific: delete outbound sessions when hungryserv confirms
  182. # that the user has uploaded the key to key backup.
  183. delete_outbound_on_ack: false
  184. # Don't store outbound sessions in the inbound table.
  185. dont_store_outbound: false
  186. # Ratchet megolm sessions forward after decrypting messages.
  187. ratchet_on_decrypt: false
  188. # Delete fully used keys (index >= max_messages) after decrypting messages.
  189. delete_fully_used_on_decrypt: false
  190. # Delete previous megolm sessions from same device when receiving a new one.
  191. delete_prev_on_new_session: false
  192. # Delete megolm sessions received from a device when the device is deleted.
  193. delete_on_device_delete: false
  194. # Periodically delete megolm sessions when 2x max_age has passed since receiving the session.
  195. periodically_delete_expired: false
  196. # Delete inbound megolm sessions that don't have the received_at field used for
  197. # automatic ratcheting and expired session deletion. This is meant as a migration
  198. # to delete old keys prior to the bridge update.
  199. delete_outdated_inbound: false
  200. # What level of device verification should be required from users?
  201. #
  202. # Valid levels:
  203. # unverified - Send keys to all device in the room.
  204. # cross-signed-untrusted - Require valid cross-signing, but trust all cross-signing keys.
  205. # cross-signed-tofu - Require valid cross-signing, trust cross-signing keys on first use (and reject changes).
  206. # cross-signed-verified - Require valid cross-signing, plus a valid user signature from the bridge bot.
  207. # Note that creating user signatures from the bridge bot is not currently possible.
  208. # verified - Require manual per-device verification
  209. # (currently only possible by modifying the `trust` column in the `crypto_device` database table).
  210. verification_levels:
  211. # Minimum level for which the bridge should send keys to when bridging messages from Signal to Matrix.
  212. receive: unverified
  213. # Minimum level that the bridge should accept for incoming Matrix messages.
  214. send: unverified
  215. # Minimum level that the bridge should require for accepting key requests.
  216. share: cross-signed-tofu
  217. # Options for Megolm room key rotation. These options allow you to
  218. # configure the m.room.encryption event content. See:
  219. # https://spec.matrix.org/v1.3/client-server-api/#mroomencryption for
  220. # more information about that event.
  221. rotation:
  222. # Enable custom Megolm room key rotation settings. Note that these
  223. # settings will only apply to rooms created after this option is
  224. # set.
  225. enable_custom: false
  226. # The maximum number of milliseconds a session should be used
  227. # before changing it. The Matrix spec recommends 604800000 (a week)
  228. # as the default.
  229. milliseconds: 604800000
  230. # The maximum number of messages that should be sent with a given a
  231. # session before changing it. The Matrix spec recommends 100 as the
  232. # default.
  233. messages: 100
  234. # Disable rotating keys when a user's devices change?
  235. # You should not enable this option unless you understand all the implications.
  236. disable_device_change_key_rotation: false
  237. # Settings for provisioning API
  238. provisioning:
  239. # Prefix for the provisioning API paths.
  240. prefix: /_matrix/provision
  241. # Shared secret for authentication. If set to "generate", a random secret will be generated,
  242. # or if set to "disable", the provisioning API will be disabled.
  243. shared_secret: generate
  244. # Enable debug API at /debug with provisioning authentication.
  245. debug_endpoints: false
  246. # Permissions for using the bridge.
  247. # Permitted values:
  248. # relay - Talk through the relaybot (if enabled), no access otherwise
  249. # user - Access to use the bridge to chat with a Signal account.
  250. # admin - User level and some additional administration tools
  251. # Permitted keys:
  252. # * - All Matrix users
  253. # domain - All users on that homeserver
  254. # mxid - Specific user
  255. permissions: {{ matrix_mautrix_signal_bridge_permissions|to_json }}
  256. # Settings for relay mode
  257. relay:
  258. # Whether relay mode should be allowed. If allowed, `!signal set-relay` can be used to turn any
  259. # authenticated user into a relaybot for that chat.
  260. enabled: {{ matrix_mautrix_signal_bridge_relay_enabled | to_json }}
  261. # Should only admins be allowed to set themselves as relay users?
  262. admin_only: {{ matrix_mautrix_signal_bridge_relay_admin_only | to_json }}
  263. # The formats to use when sending messages to WhatsApp via the relaybot.
  264. message_formats:
  265. m.text: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: {{ '{{ .Message }}' }}"
  266. m.notice: "<b>{{ '{{ .Sender.Displayname }}' }}</b>:: {{ '{{ .Message }}' }}"
  267. m.emote: "* <b>{{ '{{ .Sender.Displayname }}' }}</b>: {{ '{{ .Message }}' }}"
  268. m.file: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent a file"
  269. m.image: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent an image"
  270. m.audio: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent an audio file"
  271. m.video: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent a video"
  272. m.location: "<b>{{ '{{ .Sender.Displayname }}' }}</b>: sent a location"
  273. # Logging config. See https://github.com/tulir/zeroconfig for details.
  274. logging:
  275. directory: ./logs
  276. file_name_format: ''
  277. file_date_format: "2006-01-02"
  278. file_mode: 384
  279. timestamp_format: Jan _2, 2006 15:04:05
  280. print_level: {{ matrix_mautrix_signal_logging_level | to_json }}
  281. print_json: false
  282. file_json: false