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.
 
 

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