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.
 
 

204 line
9.1 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: {{ 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. # 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. # 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
  81. # when double puppeting is enabled
  82. sync_with_custom_puppets: true
  83. # Whether or not to update the m.direct account data event when double puppeting is enabled.
  84. # Note that updating the m.direct event is not atomic (except with mautrix-asmux)
  85. # and is therefore prone to race conditions.
  86. sync_direct_chat_list: false
  87. # Servers to always allow double puppeting from
  88. double_puppet_server_map: {}
  89. # example.com: https://example.com
  90. # Allow using double puppeting from any server with a valid client .well-known file.
  91. double_puppet_allow_discovery: false
  92. # Shared secrets 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_facebook_bridge_login_shared_secret_map|to_json }}
  100. presence: {{ matrix_mautrix_facebook_bridge_presence|to_json }}
  101. # Whether or not to update avatars when syncing all contacts at startup.
  102. update_avatar_initial_sync: true
  103. # End-to-bridge encryption support options. These require matrix-nio to be installed with pip
  104. # and login_shared_secret to be configured in order to get a device for the bridge bot.
  105. #
  106. # Additionally, https://github.com/matrix-org/synapse/pull/5758 is required if using a normal
  107. # application service.
  108. encryption:
  109. # Allow encryption, work in group chat rooms with e2ee enabled
  110. allow: false
  111. # Default to encryption, force-enable encryption in all portals the bridge creates
  112. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  113. default: false
  114. # Whether or not the bridge should send a read receipt from the bridge bot when a message has
  115. # been sent to Facebook.
  116. delivery_receipts: false
  117. # Whether to allow inviting arbitrary mxids to portal rooms
  118. allow_invites: false
  119. # Settings for backfilling messages from Facebook.
  120. backfill:
  121. # Whether or not the Facebook users of logged in Matrix users should be
  122. # invited to private chats when backfilling history from Facebook. This is
  123. # usually needed to prevent rate limits and to allow timestamp massaging.
  124. invite_own_puppet: true
  125. # Maximum number of messages to backfill initially.
  126. # Set to 0 to disable backfilling when creating portal.
  127. initial_limit: 0
  128. # Maximum number of messages to backfill if messages were missed while
  129. # the bridge was disconnected.
  130. # Set to 0 to disable backfilling missed messages.
  131. missed_limit: 1000
  132. # If using double puppeting, should notifications be disabled
  133. # while the initial backfill is in progress?
  134. disable_notifications: false
  135. periodic_reconnect:
  136. # Interval in seconds in which to automatically reconnect all users.
  137. # This can be used to automatically mitigate the bug where Facebook stops sending messages.
  138. # Set to -1 to disable periodic reconnections entirely.
  139. interval: -1
  140. # What to do in periodic reconnects. Either "refresh" or "reconnect"
  141. mode: refresh
  142. # Should even disconnected users be reconnected?
  143. always: false
  144. # The number of seconds that a disconnection can last without triggering an automatic re-sync
  145. # and missed message backfilling when reconnecting.
  146. # Set to 0 to always re-sync, or -1 to never re-sync automatically.
  147. resync_max_disconnected_time: 5
  148. # Whether or not temporary disconnections should send notices to the notice room.
  149. # If this is false, disconnections will never send messages and connections will only send
  150. # messages if it was disconnected for more than resync_max_disconnected_time seconds.
  151. temporary_disconnect_notices: true
  152. # Whether or not the bridge should try to "refresh" the connection if a normal reconnection
  153. # attempt fails.
  154. refresh_on_reconnection_fail: false
  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:
  164. '{{ matrix_mautrix_facebook_homeserver_domain }}': user
  165. # Python logging configuration.
  166. #
  167. # See section 16.7.2 of the Python documentation for more info:
  168. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  169. logging:
  170. version: 1
  171. formatters:
  172. colored:
  173. (): mautrix_facebook.util.ColorFormatter
  174. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  175. normal:
  176. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  177. handlers:
  178. console:
  179. class: logging.StreamHandler
  180. formatter: colored
  181. loggers:
  182. mau:
  183. level: DEBUG
  184. fbchat:
  185. level: DEBUG
  186. hbmqtt:
  187. level: INFO
  188. aiohttp:
  189. level: INFO
  190. root:
  191. level: DEBUG
  192. handlers: [console]