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.
 
 
 

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