Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

222 líneas
10 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_facebook_homeserver_address }}
  6. # The domain of the homeserver (for MXIDs, etc).
  7. domain: {{ matrix_mautrix_facebook_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. # Whether or not the homeserver supports asmux-specific endpoints,
  12. # such as /_matrix/client/unstable/net.maunium.asmux/dms for atomically
  13. # updating m.direct.
  14. asmux: false
  15. # Application service host/registration related details
  16. # Changing these values requires regeneration of the registration.
  17. appservice:
  18. # The address that the homeserver can use to connect to this appservice.
  19. address: {{ matrix_mautrix_facebook_appservice_address }}
  20. # The hostname and port where this appservice should listen.
  21. hostname: 0.0.0.0
  22. port: 29319
  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_facebook_appservice_database|to_json }}
  28. # Public part of web server for out-of-Matrix interaction with the bridge.
  29. public:
  30. # Whether or not the public-facing endpoints should be enabled.
  31. enabled: false
  32. # The prefix to use in the public-facing endpoints.
  33. prefix: /public
  34. # The base URL where the public-facing endpoints are available. The prefix is not added
  35. # implicitly.
  36. external: https://example.com/public
  37. # Shared secret for integration managers such as mautrix-manager.
  38. # If set to "generate", a random string will be generated on the next startup.
  39. # If null, integration manager access to the API will not be possible.
  40. shared_secret: generate
  41. # The unique ID of this appservice.
  42. id: facebook
  43. # Username of the appservice bot.
  44. bot_username: {{ matrix_mautrix_facebook_appservice_bot_username|to_json }}
  45. # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty
  46. # to leave display name/avatar as-is.
  47. bot_displayname: Facebook bridge bot
  48. bot_avatar: mxc://maunium.net/ygtkteZsXnGJLJHRchUwYWak
  49. # Authentication tokens for AS <-> HS communication.
  50. as_token: "{{ matrix_mautrix_facebook_appservice_token }}"
  51. hs_token: "{{ matrix_mautrix_facebook_homeserver_token }}"
  52. # Prometheus telemetry config. Requires prometheus-client to be installed.
  53. metrics:
  54. enabled: false
  55. listen_port: 8000
  56. # Bridge config
  57. bridge:
  58. # Localpart template of MXIDs for Facebook users.
  59. # {userid} is replaced with the user ID of the Facebook user.
  60. username_template: "facebook_{userid}"
  61. # Displayname template for Facebook users.
  62. # {displayname} is replaced with the display name of the Facebook user
  63. # as defined below in displayname_preference.
  64. # Keys available for displayname_preference are also available here.
  65. displayname_template: '{displayname} (FB)'
  66. # Available keys:
  67. # "name" (full name)
  68. # "first_name"
  69. # "last_name"
  70. # "nickname"
  71. # "own_nickname" (user-specific!)
  72. displayname_preference:
  73. - name
  74. - first_name
  75. # The prefix for commands. Only required in non-management rooms.
  76. command_prefix: "!fb"
  77. # Number of chats to sync (and create portals for) on startup/login.
  78. # Set 0 to disable automatic syncing.
  79. initial_chat_sync: 10
  80. # Whether or not the Facebook users of logged in Matrix users should be
  81. # invited to private chats when the user sends a message from another client.
  82. invite_own_puppet_to_pm: false
  83. # Whether or not to use /sync to get presence, read receipts and typing notifications
  84. # when double puppeting is enabled
  85. sync_with_custom_puppets: true
  86. # Whether or not to update the m.direct account data event when double puppeting is enabled.
  87. # Note that updating the m.direct event is not atomic (except with mautrix-asmux)
  88. # and is therefore prone to race conditions.
  89. sync_direct_chat_list: false
  90. # Servers to always allow double puppeting from
  91. double_puppet_server_map: {}
  92. # example.com: https://example.com
  93. # Allow using double puppeting from any server with a valid client .well-known file.
  94. double_puppet_allow_discovery: false
  95. # Shared secrets for https://github.com/devture/matrix-synapse-shared-secret-auth
  96. #
  97. # If set, custom puppets will be enabled automatically for local users
  98. # instead of users having to find an access token and run `login-matrix`
  99. # manually.
  100. # If using this for other servers than the bridge's server,
  101. # you must also set the URL in the double_puppet_server_map.
  102. login_shared_secret_map: {{ matrix_mautrix_facebook_bridge_login_shared_secret_map|to_json }}
  103. presence: {{ matrix_mautrix_facebook_bridge_presence|to_json }}
  104. # Whether or not to update avatars when syncing all contacts at startup.
  105. update_avatar_initial_sync: true
  106. # End-to-bridge encryption support options. These require matrix-nio to be installed with pip
  107. # and login_shared_secret to be configured in order to get a device for the bridge bot.
  108. #
  109. # Additionally, https://github.com/matrix-org/synapse/pull/5758 is required if using a normal
  110. # application service.
  111. encryption:
  112. # Allow encryption, work in group chat rooms with e2ee enabled
  113. allow: false
  114. # Default to encryption, force-enable encryption in all portals the bridge creates
  115. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  116. default: false
  117. # Options for automatic key sharing.
  118. key_sharing:
  119. # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
  120. # You must use a client that supports requesting keys from other users to use this feature.
  121. allow: false
  122. # Require the requesting device to have a valid cross-signing signature?
  123. # This doesn't require that the bridge has verified the device, only that the user has verified it.
  124. # Not yet implemented.
  125. require_cross_signing: false
  126. # Require devices to be verified by the bridge?
  127. # Verification by the bridge is not yet implemented.
  128. require_verification: true
  129. # Whether or not the bridge should send a read receipt from the bridge bot when a message has
  130. # been sent to Facebook.
  131. delivery_receipts: false
  132. # Whether to allow inviting arbitrary mxids to portal rooms
  133. allow_invites: false
  134. # Settings for backfilling messages from Facebook.
  135. backfill:
  136. # Whether or not the Facebook users of logged in Matrix users should be
  137. # invited to private chats when backfilling history from Facebook. This is
  138. # usually needed to prevent rate limits and to allow timestamp massaging.
  139. invite_own_puppet: true
  140. # Maximum number of messages to backfill initially.
  141. # Set to 0 to disable backfilling when creating portal.
  142. initial_limit: 0
  143. # Maximum number of messages to backfill if messages were missed while
  144. # the bridge was disconnected.
  145. # Set to 0 to disable backfilling missed messages.
  146. missed_limit: 1000
  147. # If using double puppeting, should notifications be disabled
  148. # while the initial backfill is in progress?
  149. disable_notifications: false
  150. periodic_reconnect:
  151. # Interval in seconds in which to automatically reconnect all users.
  152. # This can be used to automatically mitigate the bug where Facebook stops sending messages.
  153. # Set to -1 to disable periodic reconnections entirely.
  154. interval: -1
  155. # What to do in periodic reconnects. Either "refresh" or "reconnect"
  156. mode: refresh
  157. # Should even disconnected users be reconnected?
  158. always: false
  159. # The number of seconds that a disconnection can last without triggering an automatic re-sync
  160. # and missed message backfilling when reconnecting.
  161. # Set to 0 to always re-sync, or -1 to never re-sync automatically.
  162. resync_max_disconnected_time: 5
  163. # Whether or not temporary disconnections should send notices to the notice room.
  164. # If this is false, disconnections will never send messages and connections will only send
  165. # messages if it was disconnected for more than resync_max_disconnected_time seconds.
  166. temporary_disconnect_notices: true
  167. # Whether or not the bridge should try to "refresh" the connection if a normal reconnection
  168. # attempt fails.
  169. refresh_on_reconnection_fail: false
  170. # Set this to true to tell the bridge to re-send m.bridge events to all rooms on the next run.
  171. # This field will automatically be changed back to false after it,
  172. # except if the config file is not writable.
  173. resend_bridge_info: false
  174. # Permissions for using the bridge.
  175. # Permitted values:
  176. # user - Use the bridge with puppeting.
  177. # admin - Use and administrate the bridge.
  178. # Permitted keys:
  179. # * - All Matrix users
  180. # domain - All users on that homeserver
  181. # mxid - Specific user
  182. permissions:
  183. '{{ matrix_mautrix_facebook_homeserver_domain }}': user
  184. # Python logging configuration.
  185. #
  186. # See section 16.7.2 of the Python documentation for more info:
  187. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  188. logging:
  189. version: 1
  190. formatters:
  191. colored:
  192. (): mautrix_facebook.util.ColorFormatter
  193. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  194. normal:
  195. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  196. handlers:
  197. console:
  198. class: logging.StreamHandler
  199. formatter: colored
  200. loggers:
  201. mau:
  202. level: DEBUG
  203. paho:
  204. level: INFO
  205. aiohttp:
  206. level: INFO
  207. root:
  208. level: DEBUG
  209. handlers: [console]