Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

221 行
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. presence: {{ matrix_mautrix_facebook_bridge_presence|to_json }}
  100. # Whether or not to update avatars when syncing all contacts at startup.
  101. update_avatar_initial_sync: true
  102. # End-to-bridge encryption support options. These require matrix-nio to be installed with pip
  103. # and login_shared_secret to be configured in order to get a device for the bridge bot.
  104. #
  105. # Additionally, https://github.com/matrix-org/synapse/pull/5758 is required if using a normal
  106. # application service.
  107. encryption:
  108. # Allow encryption, work in group chat rooms with e2ee enabled
  109. allow: false
  110. # Default to encryption, force-enable encryption in all portals the bridge creates
  111. # This will cause the bridge bot to be in private chats for the encryption to work properly.
  112. default: false
  113. # Options for automatic key sharing.
  114. key_sharing:
  115. # Enable key sharing? If enabled, key requests for rooms where users are in will be fulfilled.
  116. # You must use a client that supports requesting keys from other users to use this feature.
  117. allow: false
  118. # Require the requesting device to have a valid cross-signing signature?
  119. # This doesn't require that the bridge has verified the device, only that the user has verified it.
  120. # Not yet implemented.
  121. require_cross_signing: false
  122. # Require devices to be verified by the bridge?
  123. # Verification by the bridge is not yet implemented.
  124. require_verification: true
  125. # Whether or not the bridge should send a read receipt from the bridge bot when a message has
  126. # been sent to Facebook.
  127. delivery_receipts: false
  128. # Whether to allow inviting arbitrary mxids to portal rooms
  129. allow_invites: false
  130. # Whether or not created rooms should have federation enabled.
  131. # If false, created portal rooms will never be federated.
  132. federate_rooms: {{ matrix_mautrix_facebook_federate_rooms|to_json }}
  133. # Settings for backfilling messages from Facebook.
  134. backfill:
  135. # Whether or not the Facebook users of logged in Matrix users should be
  136. # invited to private chats when backfilling history from Facebook. This is
  137. # usually needed to prevent rate limits and to allow timestamp massaging.
  138. invite_own_puppet: true
  139. # Maximum number of messages to backfill initially.
  140. # Set to 0 to disable backfilling when creating portal.
  141. initial_limit: 0
  142. # Maximum number of messages to backfill if messages were missed while
  143. # the bridge was disconnected.
  144. # Set to 0 to disable backfilling missed messages.
  145. missed_limit: 1000
  146. # If using double puppeting, should notifications be disabled
  147. # while the initial backfill is in progress?
  148. disable_notifications: false
  149. periodic_reconnect:
  150. # Interval in seconds in which to automatically reconnect all users.
  151. # This can be used to automatically mitigate the bug where Facebook stops sending messages.
  152. # Set to -1 to disable periodic reconnections entirely.
  153. interval: -1
  154. # What to do in periodic reconnects. Either "refresh" or "reconnect"
  155. mode: refresh
  156. # Should even disconnected users be reconnected?
  157. always: false
  158. # The number of seconds that a disconnection can last without triggering an automatic re-sync
  159. # and missed message backfilling when reconnecting.
  160. # Set to 0 to always re-sync, or -1 to never re-sync automatically.
  161. resync_max_disconnected_time: 5
  162. # Whether or not temporary disconnections should send notices to the notice room.
  163. # If this is false, disconnections will never send messages and connections will only send
  164. # messages if it was disconnected for more than resync_max_disconnected_time seconds.
  165. temporary_disconnect_notices: false
  166. # Whether or not the bridge should try to "refresh" the connection if a normal reconnection
  167. # attempt fails.
  168. refresh_on_reconnection_fail: false
  169. # Set this to true to tell the bridge to re-send m.bridge events to all rooms on the next run.
  170. # This field will automatically be changed back to false after it,
  171. # except if the config file is not writable.
  172. resend_bridge_info: false
  173. # Permissions for using the bridge.
  174. # Permitted values:
  175. # user - Use the bridge with puppeting.
  176. # admin - Use and administrate the bridge.
  177. # Permitted keys:
  178. # * - All Matrix users
  179. # domain - All users on that homeserver
  180. # mxid - Specific user
  181. permissions:
  182. '{{ matrix_mautrix_facebook_homeserver_domain }}': user
  183. # Python logging configuration.
  184. #
  185. # See section 16.7.2 of the Python documentation for more info:
  186. # https://docs.python.org/3.6/library/logging.config.html#configuration-dictionary-schema
  187. logging:
  188. version: 1
  189. formatters:
  190. colored:
  191. (): mautrix_facebook.util.ColorFormatter
  192. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  193. normal:
  194. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  195. handlers:
  196. console:
  197. class: logging.StreamHandler
  198. formatter: colored
  199. loggers:
  200. mau:
  201. level: DEBUG
  202. paho:
  203. level: INFO
  204. aiohttp:
  205. level: INFO
  206. root:
  207. level: DEBUG
  208. handlers: [console]