Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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