Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

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