Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

172 lines
7.3 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. # Application service host/registration related details
  12. # Changing these values requires regeneration of the registration.
  13. appservice:
  14. # The address that the homeserver can use to connect to this appservice.
  15. address: {{ matrix_mautrix_facebook_appservice_address }}
  16. # The hostname and port where this appservice should listen.
  17. hostname: 0.0.0.0
  18. port: 29319
  19. # The maximum body size of appservice API requests (from the homeserver) in mebibytes
  20. # Usually 1 is enough, but on high-traffic bridges you might need to increase this to avoid 413s
  21. max_body_size: 1
  22. # The full URI to the database. SQLite and Postgres are fully supported.
  23. # Other DBMSes supported by SQLAlchemy may or may not work.
  24. # Format examples:
  25. # SQLite: sqlite:///filename.db
  26. # Postgres: postgres://username:password@hostname/dbname
  27. database: sqlite:////data/mautrix-facebook.db
  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. # The unique ID of this appservice.
  38. id: facebook
  39. # Username of the appservice bot.
  40. bot_username: facebookbot
  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/ddtNPZSKMNqaUzqrHuWvUADv
  45. # Authentication tokens for AS <-> HS communication.
  46. as_token: "{{ matrix_mautrix_facebook_appservice_token }}"
  47. hs_token: "{{ matrix_mautrix_facebook_homeserver_token }}"
  48. # Bridge config
  49. bridge:
  50. # Localpart template of MXIDs for Facebook users.
  51. # {userid} is replaced with the user ID of the Facebook user.
  52. username_template: "facebook_{userid}"
  53. # Localpart template for per-user room grouping community IDs.
  54. # The bridge will create these communities and add all of the specific user's portals to the community.
  55. # {localpart} is the MXID localpart and {server} is the MXID server part of the user.
  56. #
  57. # `facebook_{localpart}={server}` is a good value.
  58. community_template: null
  59. # Displayname template for Facebook users.
  60. # {displayname} is replaced with the display name of the Facebook user
  61. # as defined below in displayname_preference.
  62. # Keys available for displayname_preference are also available here.
  63. displayname_template: '{displayname} (FB)'
  64. # Available keys:
  65. # "name" (full name)
  66. # "first_name"
  67. # "last_name"
  68. # "nickname"
  69. # "own_nickname" (user-specific!)
  70. displayname_preference:
  71. - name
  72. # The prefix for commands. Only required in non-management rooms.
  73. command_prefix: "!fb"
  74. # Number of chats to sync (and create portals for) on startup/login.
  75. # Maximum 20, set 0 to disable automatic syncing.
  76. initial_chat_sync: 10
  77. # Whether or not the Facebook users of logged in Matrix users should be
  78. # invited to private chats when the user sends a message from another client.
  79. invite_own_puppet_to_pm: false
  80. # Whether or not to use /sync to get presence, read receipts and typing notifications when using
  81. # your own Matrix account as the Matrix puppet for your Facebook account.
  82. sync_with_custom_puppets: true
  83. # Shared secret for https://github.com/devture/matrix-synapse-shared-secret-auth
  84. #
  85. # If set, custom puppets will be enabled automatically for local users
  86. # instead of users having to find an access token and run `login-matrix`
  87. # manually.
  88. login_shared_secret: {{ matrix_mautrix_facebook_login_shared_secret|to_json }}
  89. # Whether or not to bridge presence in both directions. Facebook allows users not to broadcast
  90. # presence, but then it won't send other users' presence to the client.
  91. presence: true
  92. # Whether or not to update avatars when syncing all contacts at startup.
  93. update_avatar_initial_sync: true
  94. # End-to-bridge encryption support options. These require matrix-nio to be installed with pip
  95. # and login_shared_secret to be configured in order to get a device for the bridge bot.
  96. #
  97. # Additionally, https://github.com/matrix-org/synapse/pull/5758 is required if using a normal
  98. # application service.
  99. encryption:
  100. # Allow encryption, work in group chat rooms with e2ee enabled
  101. allow: false
  102. # Default to encryption, force-enable encryption in all portals the bridge creates
  103. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  104. default: false
  105. # Whether or not the bridge should send a read receipt from the bridge bot when a message has
  106. # been sent to Facebook.
  107. delivery_receipts: false
  108. # Whether to allow inviting arbitrary mxids to portal rooms
  109. allow_invites: false
  110. # Settings for backfilling messages from Facebook.
  111. backfill:
  112. # Whether or not the Facebook users of logged in Matrix users should be
  113. # invited to private chats when backfilling history from Facebook. This is
  114. # usually needed to prevent rate limits and to allow timestamp massaging.
  115. invite_own_puppet: true
  116. # Maximum number of messages to backfill initially.
  117. # Set to 0 to disable backfilling when creating portal.
  118. initial_limit: 0
  119. # Maximum number of messages to backfill if messages were missed while
  120. # the bridge was disconnected.
  121. # Set to 0 to disable backfilling missed messages.
  122. missed_limit: 1000
  123. # Permissions for using the bridge.
  124. # Permitted values:
  125. # user - Use the bridge with puppeting.
  126. # admin - Use and administrate the bridge.
  127. # Permitted keys:
  128. # * - All Matrix users
  129. # domain - All users on that homeserver
  130. # mxid - Specific user
  131. permissions:
  132. '{{ matrix_mautrix_facebook_homeserver_domain }}': user
  133. # Python logging configuration.
  134. #
  135. # See section 16.7.2 of the Python documentation for more info:
  136. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  137. logging:
  138. version: 1
  139. formatters:
  140. colored:
  141. (): mautrix_facebook.util.ColorFormatter
  142. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  143. normal:
  144. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  145. handlers:
  146. console:
  147. class: logging.StreamHandler
  148. formatter: colored
  149. loggers:
  150. mau:
  151. level: DEBUG
  152. fbchat:
  153. level: DEBUG
  154. hbmqtt:
  155. level: INFO
  156. aiohttp:
  157. level: INFO
  158. root:
  159. level: DEBUG
  160. handlers: [console]