Matrix Docker Ansible eploy
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

210 rindas
9.5 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_twitter_homeserver_address }}
  6. # The domain of the homeserver (for MXIDs, etc).
  7. domain: {{ matrix_mautrix_twitter_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_twitter_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: 29327
  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_twitter_appservice_database|to_json }}
  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: twitter
  45. # Username of the appservice bot.
  46. bot_username: {{ matrix_mautrix_twitter_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: Twitter bridge bot
  50. bot_avatar: mxc://maunium.net/HVHcnusJkQcpVcsVGZRELLCn
  51. # Community ID for bridged users (changes registration file) and rooms.
  52. # Must be created manually.
  53. #
  54. # Example: "+twitter:example.com". Set to false to disable.
  55. community_id: false
  56. # Whether or not to receive ephemeral events via appservice transactions.
  57. # Requires MSC2409 support (i.e. Synapse 1.22+).
  58. # You should disable bridge -> sync_with_custom_puppets when this is enabled.
  59. ephemeral_events: false
  60. # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
  61. as_token: "{{ matrix_mautrix_twitter_appservice_token }}"
  62. hs_token: "{{ matrix_mautrix_twitter_homeserver_token }}"
  63. # Prometheus telemetry config. Requires prometheus-client to be installed.
  64. metrics:
  65. enabled: false
  66. listen_port: 8000
  67. # Bridge config
  68. bridge:
  69. # Localpart template of MXIDs for Twitter users.
  70. # {userid} is replaced with the user ID of the Twitter user.
  71. username_template: "twitter_{userid}"
  72. # Displayname template for Twitter users.
  73. # {displayname} is replaced with the display name of the Twitter user.
  74. # {username} is replaced with the username of the Twitter user.
  75. displayname_template: "{displayname} (Twitter)"
  76. # Maximum length of displayname
  77. displayname_max_length: 100
  78. # Number of conversations to sync (and create portals for) on login.
  79. # Set 0 to disable automatic syncing.
  80. initial_conversation_sync: 10
  81. # Whether or not to use /sync to get read receipts and typing notifications
  82. # when double puppeting is enabled
  83. sync_with_custom_puppets: true
  84. # Whether or not to update the m.direct account data event when double puppeting is enabled.
  85. # Note that updating the m.direct event is not atomic (except with mautrix-asmux)
  86. # and is therefore prone to race conditions.
  87. sync_direct_chat_list: false
  88. # Allow using double puppeting from any server with a valid client .well-known file.
  89. double_puppet_allow_discovery: false
  90. # Servers to allow double puppeting from, even if double_puppet_allow_discovery is false.
  91. double_puppet_server_map: {}
  92. # Shared secret for https://github.com/devture/matrix-synapse-shared-secret-auth
  93. #
  94. # If set, custom puppets will be enabled automatically for local users
  95. # instead of users having to find an access token and run `login-matrix`
  96. # manually.
  97. # If using this for other servers than the bridge's server,
  98. # you must also set the URL in the double_puppet_server_map.
  99. login_shared_secret_map: {{ matrix_mautrix_twitter_bridge_login_shared_secret_map|to_json }}
  100. # Whether or not created rooms should have federation enabled.
  101. # If false, created portal rooms will never be federated.
  102. federate_rooms: true
  103. # Settings for backfilling messages from Twitter.
  104. #
  105. # Missed message backfilling is currently based on receiving them from the Twitter polling API,
  106. # rather than manually asking for messages in each conversation. Due to this, there's no way to
  107. # set a limit for missed message backfilling.
  108. backfill:
  109. # Whether or not the Twitter users of logged in Matrix users should be
  110. # invited to private chats when backfilling history from Twitter. This is
  111. # usually needed to prevent rate limits and to allow timestamp massaging.
  112. invite_own_puppet: true
  113. # Maximum number of messages to backfill initially.
  114. # Set to 0 to disable backfilling when creating portal.
  115. initial_limit: 0
  116. # If using double puppeting, should notifications be disabled
  117. # while the initial backfill is in progress?
  118. disable_notifications: true
  119. # End-to-bridge encryption support options. You must install the e2be optional dependency for
  120. # this to work. See https://github.com/tulir/mautrix-telegram/wiki/End‐to‐bridge-encryption
  121. encryption:
  122. # Allow encryption, work in group chat rooms with e2ee enabled
  123. allow: false
  124. # Default to encryption, force-enable encryption in all portals the bridge creates
  125. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  126. default: false
  127. # Options for automatic key sharing.
  128. key_sharing:
  129. # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
  130. # You must use a client that supports requesting keys from other users to use this feature.
  131. allow: false
  132. # Require the requesting device to have a valid cross-signing signature?
  133. # This doesn't require that the bridge has verified the device, only that the user has verified it.
  134. # Not yet implemented.
  135. require_cross_signing: false
  136. # Require devices to be verified by the bridge?
  137. # Verification by the bridge is not yet implemented.
  138. require_verification: true
  139. # Whether or not to explicitly set the avatar and room name for private
  140. # chat portal rooms. This will be implicitly enabled if encryption.default is true.
  141. private_chat_portal_meta: false
  142. # Whether or not the bridge should send a read receipt from the bridge bot when a message has
  143. # been sent to Twitter.
  144. delivery_receipts: false
  145. # Whether or not delivery errors should be reported as messages in the Matrix room.
  146. delivery_error_reports: false
  147. # Whether or not non-fatal polling errors should send notices to the notice room.
  148. temporary_disconnect_notices: true
  149. # Number of seconds to sleep more than the previous error when a polling error occurs.
  150. # Growth is capped at 15 minutes.
  151. error_sleep: 5
  152. # Maximum number of polling errors before giving up. Set to -1 to retry forever.
  153. max_poll_errors: 12
  154. # Set this to true to tell the bridge to re-send m.bridge events to all rooms on the next run.
  155. # This field will automatically be changed back to false after it,
  156. # except if the config file is not writable.
  157. resend_bridge_info: false
  158. # The prefix for commands. Only required in non-management rooms.
  159. command_prefix: "!tw"
  160. # Permissions for using the bridge.
  161. # Permitted values:
  162. # user - Use the bridge with puppeting.
  163. # admin - Use and administrate the bridge.
  164. # Permitted keys:
  165. # * - All Matrix users
  166. # domain - All users on that homeserver
  167. # mxid - Specific user
  168. permissions:
  169. '{{ matrix_mautrix_twitter_homeserver_domain }}': user
  170. # Python logging configuration.
  171. #
  172. # See section 16.7.2 of the Python documentation for more info:
  173. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  174. logging:
  175. version: 1
  176. formatters:
  177. colored:
  178. (): mautrix_twitter.util.ColorFormatter
  179. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  180. normal:
  181. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  182. handlers:
  183. console:
  184. class: logging.StreamHandler
  185. formatter: colored
  186. loggers:
  187. mau:
  188. level: DEBUG
  189. aiohttp:
  190. level: INFO
  191. root:
  192. level: DEBUG
  193. handlers: [console]