Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

274 lines
13 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. # Whether or not to verify the SSL certificate of the homeserver.
  9. # Only applies if address starts with https://
  10. verify_ssl: true
  11. asmux: false
  12. # Number of retries for all HTTP requests if the homeserver isn't reachable.
  13. http_retry_count: 4
  14. # The URL to push real-time bridge status to.
  15. # If set, the bridge will make POST requests to this URL whenever a user's Signal connection state changes.
  16. # The bridge will use the appservice as_token to authorize requests.
  17. status_endpoint: null
  18. # Endpoint for reporting per-message status.
  19. message_send_checkpoint_endpoint: null
  20. # Application service host/registration related details
  21. # Changing these values requires regeneration of the registration.
  22. appservice:
  23. # The address that the homeserver can use to connect to this appservice.
  24. address: {{ matrix_mautrix_signal_appservice_address }}
  25. # When using https:// the TLS certificate and key files for the address.
  26. tls_cert: false
  27. tls_key: false
  28. # The hostname and port where this appservice should listen.
  29. hostname: 0.0.0.0
  30. port: 29328
  31. # The maximum body size of appservice API requests (from the homeserver) in mebibytes
  32. # Usually 1 is enough, but on high-traffic bridges you might need to increase this to avoid 413s
  33. max_body_size: 1
  34. # The full URI to the database. SQLite and Postgres are supported.
  35. # Format examples:
  36. # SQLite: sqlite:///filename.db
  37. # Postgres: postgres://username:password@hostname/dbname
  38. database: {{ matrix_mautrix_signal_database_connection_string }}
  39. # Additional arguments for asyncpg.create_pool() or sqlite3.connect()
  40. # https://magicstack.github.io/asyncpg/current/api/index.html#asyncpg.pool.create_pool
  41. # https://docs.python.org/3/library/sqlite3.html#sqlite3.connect
  42. # For sqlite, min_size is used as the connection thread pool size and max_size is ignored.
  43. database_opts:
  44. min_size: 5
  45. max_size: 10
  46. # The unique ID of this appservice.
  47. id: signal
  48. # Username of the appservice bot.
  49. bot_username: {{ matrix_mautrix_signal_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. bot_displayname: Signal bridge bot
  53. bot_avatar: mxc://maunium.net/wPJgTQbZOtpBFmDNkiNEMDUp
  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: false
  58. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  59. as_token: "{{ matrix_mautrix_signal_appservice_token }}"
  60. hs_token: "{{ matrix_mautrix_signal_homeserver_token }}"
  61. # Prometheus telemetry config. Requires prometheus-client to be installed.
  62. metrics:
  63. enabled: {{ matrix_mautrix_signal_metrics_enabled | to_json }}
  64. listen_port: 8000
  65. # Manhole config.
  66. manhole:
  67. # Whether or not opening the manhole is allowed.
  68. enabled: false
  69. # The path for the unix socket.
  70. path: /var/tmp/mautrix-signal.manhole
  71. # The list of UIDs who can be added to the whitelist.
  72. # If empty, any UIDs can be specified in the open-manhole command.
  73. whitelist:
  74. - 0
  75. signal:
  76. # Path to signald unix socket
  77. socket_path: /signald/signald.sock
  78. # Directory for temp files when sending files to Signal. This should be an
  79. # absolute path that signald can read. For attachments in the other direction,
  80. # make sure signald is configured to use an absolute path as the data directory.
  81. outgoing_attachment_dir: /signald/attachments
  82. # Directory where signald stores avatars for groups.
  83. avatar_dir: /signald/avatars
  84. # Directory where signald stores auth data. Used to delete data when logging out.
  85. data_dir: /signald/data
  86. # Whether or not unknown signald accounts should be deleted when the bridge is started.
  87. # When this is enabled, any UserInUse errors should be resolved by restarting the bridge.
  88. delete_unknown_accounts_on_start: false
  89. # Whether or not message attachments should be removed from disk after they're bridged.
  90. remove_file_after_handling: true
  91. # Whether or not users can register a primary device
  92. registration_enabled: true
  93. # Bridge config
  94. bridge:
  95. # Localpart template of MXIDs for Signal users.
  96. # {userid} is replaced with an identifier for the Signal user.
  97. username_template: "signal_{userid}"
  98. # Displayname template for Signal users.
  99. # {displayname} is replaced with the displayname of the Signal user, which is the first
  100. # available variable in displayname_preference. The variables in displayname_preference
  101. # can also be used here directly.
  102. displayname_template: "{displayname} (Signal)"
  103. # Whether or not contact list displaynames should be used.
  104. # Possible values: disallow, allow, prefer
  105. #
  106. # Multi-user instances are recommended to disallow contact list names, as otherwise there can
  107. # be conflicts between names from different users' contact lists.
  108. contact_list_names: disallow
  109. # Available variables: full_name, first_name, last_name, phone, uuid
  110. displayname_preference:
  111. - full_name
  112. - phone
  113. # Whether or not to create portals for all groups on login/connect.
  114. autocreate_group_portal: true
  115. # Whether or not to create portals for all contacts on login/connect.
  116. autocreate_contact_portal: false
  117. # Whether or not to use /sync to get read receipts and typing notifications
  118. # when double puppeting is enabled
  119. sync_with_custom_puppets: true
  120. # Whether or not to update the m.direct account data event when double puppeting is enabled.
  121. # Note that updating the m.direct event is not atomic (except with mautrix-asmux)
  122. # and is therefore prone to race conditions.
  123. sync_direct_chat_list: false
  124. # Allow using double puppeting from any server with a valid client .well-known file.
  125. double_puppet_allow_discovery: false
  126. # Servers to allow double puppeting from, even if double_puppet_allow_discovery is false.
  127. double_puppet_server_map: {}
  128. # Shared secret for https://github.com/devture/matrix-synapse-shared-secret-auth
  129. #
  130. # If set, custom puppets will be enabled automatically for local users
  131. # instead of users having to find an access token and run `login-matrix`
  132. # manually.
  133. # If using this for other servers than the bridge's server,
  134. # you must also set the URL in the double_puppet_server_map.
  135. login_shared_secret_map:
  136. {{ matrix_mautrix_signal_homeserver_domain }}: {{ matrix_mautrix_signal_login_shared_secret|to_json }}
  137. # Whether or not created rooms should have federation enabled.
  138. # If false, created portal rooms will never be federated.
  139. federate_rooms: {{ matrix_mautrix_signal_federate_rooms|to_json }}
  140. # End-to-bridge encryption support options. You must install the e2be optional dependency for
  141. # this to work. See https://github.com/tulir/mautrix-telegram/wiki/End‐to‐bridge-encryption
  142. encryption:
  143. # Allow encryption, work in group chat rooms with e2ee enabled
  144. allow: {{ matrix_mautrix_signal_bridge_encryption_allow|to_json }}
  145. # Default to encryption, force-enable encryption in all portals the bridge creates
  146. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  147. default: {{ matrix_mautrix_signal_bridge_encryption_default|to_json }}
  148. # Options for automatic key sharing.
  149. key_sharing:
  150. # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
  151. # You must use a client that supports requesting keys from other users to use this feature.
  152. allow: {{ matrix_mautrix_signal_bridge_encryption_key_sharing_allow|to_json }}
  153. # Require the requesting device to have a valid cross-signing signature?
  154. # This doesn't require that the bridge has verified the device, only that the user has verified it.
  155. # Not yet implemented.
  156. require_cross_signing: false
  157. # Require devices to be verified by the bridge?
  158. # Verification by the bridge is not yet implemented.
  159. require_verification: true
  160. # Whether or not to explicitly set the avatar and room name for private
  161. # chat portal rooms. This will be implicitly enabled if encryption.default is true.
  162. private_chat_portal_meta: false
  163. # Whether or not the bridge should send a read receipt from the bridge bot when a message has
  164. # been sent to Signal. This let's you check manually whether the bridge is receiving your
  165. # messages.
  166. # Note that this is not related to Signal delivery receipts.
  167. delivery_receipts: false
  168. # Whether or not delivery errors should be reported as messages in the Matrix room. (not yet implemented)
  169. delivery_error_reports: true
  170. # Set this to true to tell the bridge to re-send m.bridge events to all rooms on the next run.
  171. # This field will automatically be changed back to false after it,
  172. # except if the config file is not writable.
  173. resend_bridge_info: false
  174. # Interval at which to resync contacts (in seconds).
  175. periodic_sync: 0
  176. # Provisioning API part of the web server for automated portal creation and fetching information.
  177. # Used by things like mautrix-manager (https://github.com/tulir/mautrix-manager).
  178. provisioning:
  179. # Whether or not the provisioning API should be enabled.
  180. enabled: true
  181. # The prefix to use in the provisioning API endpoints.
  182. prefix: /_matrix/provision/v1
  183. # The shared secret to authorize users of the API.
  184. # Set to "generate" to generate and save a new token.
  185. shared_secret: generate
  186. # The prefix for commands. Only required in non-management rooms.
  187. command_prefix: "{{ matrix_mautrix_signal_command_prefix }}"
  188. # Messages sent upon joining a management room.
  189. # Markdown is supported. The defaults are listed below.
  190. management_room_text:
  191. # Sent when joining a room.
  192. welcome: "Hello, I'm a Signal bridge bot."
  193. # Sent when joining a management room and the user is already logged in.
  194. welcome_connected: "Use `help` for help."
  195. # Sent when joining a management room and the user is not logged in.
  196. welcome_unconnected: "Use `help` for help or `register` to log in."
  197. # Optional extra text sent when joining a management room.
  198. additional_help: ""
  199. # Send each message separately (for readability in some clients)
  200. management_room_multiple_messages: false
  201. # Permissions for using the bridge.
  202. # Permitted values:
  203. # relay - Allowed to be relayed through the bridge, no access to commands.
  204. # user - Use the bridge with puppeting.
  205. # admin - Use and administrate the bridge.
  206. # Permitted keys:
  207. # * - All Matrix users
  208. # domain - All users on that homeserver
  209. # mxid - Specific user
  210. permissions: {{ matrix_mautrix_signal_bridge_permissions|to_json }}
  211. relay:
  212. # Whether or not relay mode should be allowed. If allowed, `!signal set-relay` can be used to turn any
  213. # authenticated user into a relaybot for that chat.
  214. enabled: {{ matrix_mautrix_signal_relaybot_enabled }}
  215. # The formats to use when sending messages to Signal via a relay user.
  216. #
  217. # Available variables:
  218. # $sender_displayname - The display name of the sender (e.g. Example User)
  219. # $sender_username - The username (Matrix ID localpart) of the sender (e.g. exampleuser)
  220. # $sender_mxid - The Matrix ID of the sender (e.g. @exampleuser:example.com)
  221. # $message - The message content
  222. message_formats:
  223. m.text: '$sender_displayname: $message'
  224. m.notice: '$sender_displayname: $message'
  225. m.emote: '* $sender_displayname $message'
  226. m.file: '$sender_displayname sent a file'
  227. m.image: '$sender_displayname sent an image'
  228. m.audio: '$sender_displayname sent an audio file'
  229. m.video: '$sender_displayname sent a video'
  230. m.location: '$sender_displayname sent a location'
  231. # Python logging configuration.
  232. #
  233. # See section 16.7.2 of the Python documentation for more info:
  234. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  235. logging:
  236. version: 1
  237. formatters:
  238. colored:
  239. (): mautrix_signal.util.ColorFormatter
  240. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  241. normal:
  242. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  243. handlers:
  244. console:
  245. class: logging.StreamHandler
  246. formatter: colored
  247. loggers:
  248. mau:
  249. level: {{ matrix_mautrix_signal_logging_level|to_json }}
  250. aiohttp:
  251. level: {{ matrix_mautrix_signal_logging_level|to_json }}
  252. root:
  253. level: {{ matrix_mautrix_signal_logging_level|to_json }}
  254. handlers: [console]