Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

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