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

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