Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

443 líneas
17 KiB

  1. ---
  2. matrix_synapse_workers_generic_worker_endpoints:
  3. # This worker can handle API requests matching the following regular expressions.
  4. # These endpoints can be routed to any worker. If a worker is set up to handle a
  5. # stream then, for maximum efficiency, additional endpoints should be routed to that
  6. # worker: refer to the [stream writers](#stream-writers) section below for further
  7. # information.
  8. # Sync requests
  9. - ^/_matrix/client/(r0|v3)/sync$
  10. - ^/_matrix/client/(api/v1|r0|v3)/events$
  11. - ^/_matrix/client/(api/v1|r0|v3)/initialSync$
  12. - ^/_matrix/client/(api/v1|r0|v3)/rooms/[^/]+/initialSync$
  13. # Federation requests
  14. - ^/_matrix/federation/v1/event/
  15. - ^/_matrix/federation/v1/state/
  16. - ^/_matrix/federation/v1/state_ids/
  17. - ^/_matrix/federation/v1/backfill/
  18. - ^/_matrix/federation/v1/get_missing_events/
  19. - ^/_matrix/federation/v1/publicRooms
  20. - ^/_matrix/federation/v1/query/
  21. - ^/_matrix/federation/v1/make_join/
  22. - ^/_matrix/federation/v1/make_leave/
  23. - ^/_matrix/federation/(v1|v2)/send_join/
  24. - ^/_matrix/federation/(v1|v2)/send_leave/
  25. - ^/_matrix/federation/(v1|v2)/invite/
  26. - ^/_matrix/federation/v1/event_auth/
  27. - ^/_matrix/federation/v1/exchange_third_party_invite/
  28. - ^/_matrix/federation/v1/user/devices/
  29. - ^/_matrix/key/v2/query
  30. - ^/_matrix/federation/v1/hierarchy/
  31. # Inbound federation transaction request
  32. - ^/_matrix/federation/v1/send/
  33. # Client API requests
  34. - ^/_matrix/client/(api/v1|r0|v3|unstable)/createRoom$
  35. - ^/_matrix/client/(api/v1|r0|v3|unstable)/publicRooms$
  36. - ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/joined_members$
  37. - ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/context/.*$
  38. - ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/members$
  39. - ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state$
  40. - ^/_matrix/client/v1/rooms/.*/hierarchy$
  41. - ^/_matrix/client/unstable/org.matrix.msc2716/rooms/.*/batch_send$
  42. - ^/_matrix/client/unstable/im.nheko.summary/rooms/.*/summary$
  43. - ^/_matrix/client/(r0|v3|unstable)/account/3pid$
  44. - ^/_matrix/client/(r0|v3|unstable)/account/whoami$
  45. - ^/_matrix/client/(r0|v3|unstable)/devices$
  46. - ^/_matrix/client/versions$
  47. - ^/_matrix/client/(api/v1|r0|v3|unstable)/voip/turnServer$
  48. - ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/event/
  49. - ^/_matrix/client/(api/v1|r0|v3|unstable)/joined_rooms$
  50. - ^/_matrix/client/(api/v1|r0|v3|unstable)/search$
  51. # Encryption requests
  52. # Note that ^/_matrix/client/(r0|v3|unstable)/keys/upload/ requires `worker_main_http_uri`
  53. - ^/_matrix/client/(r0|v3|unstable)/keys/query$
  54. - ^/_matrix/client/(r0|v3|unstable)/keys/changes$
  55. - ^/_matrix/client/(r0|v3|unstable)/keys/claim$
  56. - ^/_matrix/client/(r0|v3|unstable)/room_keys/
  57. - ^/_matrix/client/(r0|v3|unstable)/keys/upload/
  58. # Registration/login requests
  59. - ^/_matrix/client/(api/v1|r0|v3|unstable)/login$
  60. - ^/_matrix/client/(r0|v3|unstable)/register$
  61. - ^/_matrix/client/v1/register/m.login.registration_token/validity$
  62. # Event sending requests
  63. - ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/redact
  64. - ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/send
  65. - ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state/
  66. - ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/(join|invite|leave|ban|unban|kick)$
  67. - ^/_matrix/client/(api/v1|r0|v3|unstable)/join/
  68. - ^/_matrix/client/(api/v1|r0|v3|unstable)/profile/
  69. # These appear to be conditional and should not be enabled by default.
  70. # We need to fix up our workers-doc-to-yaml.awk parsing script to exclude them.
  71. # For now, they've been commented out manually.
  72. # # Account data requests
  73. # - ^/_matrix/client/(r0|v3|unstable)/.*/tags
  74. # - ^/_matrix/client/(r0|v3|unstable)/.*/account_data
  75. #
  76. # # Receipts requests
  77. # - ^/_matrix/client/(r0|v3|unstable)/rooms/.*/receipt
  78. # - ^/_matrix/client/(r0|v3|unstable)/rooms/.*/read_markers
  79. #
  80. # # Presence requests
  81. # - ^/_matrix/client/(api/v1|r0|v3|unstable)/presence/
  82. # User directory search requests
  83. - ^/_matrix/client/(r0|v3|unstable)/user_directory/search$
  84. # Additionally, the following REST endpoints can be handled for GET requests:
  85. # FIXME: ADDITIONAL CONDITIONS REQUIRED: to be enabled manually
  86. # ^/_matrix/client/(api/v1|r0|v3|unstable)/pushrules/
  87. # Pagination requests can also be handled, but all requests for a given
  88. # room must be routed to the same instance. Additionally, care must be taken to
  89. # ensure that the purge history admin API is not used while pagination requests
  90. # for the room are in flight:
  91. # FIXME: ADDITIONAL CONDITIONS REQUIRED: to be enabled manually
  92. # ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/messages$
  93. # Additionally, the following endpoints should be included if Synapse is configured
  94. # to use SSO (you only need to include the ones for whichever SSO provider you're
  95. # using):
  96. # for all SSO providers
  97. # FIXME: ADDITIONAL CONDITIONS REQUIRED: to be enabled manually
  98. # ^/_matrix/client/(api/v1|r0|v3|unstable)/login/sso/redirect
  99. # ^/_synapse/client/pick_idp$
  100. # ^/_synapse/client/pick_username
  101. # ^/_synapse/client/new_user_consent$
  102. # ^/_synapse/client/sso_register$
  103. # OpenID Connect requests.
  104. # FIXME: ADDITIONAL CONDITIONS REQUIRED: to be enabled manually
  105. # ^/_synapse/client/oidc/callback$
  106. # SAML requests.
  107. # FIXME: ADDITIONAL CONDITIONS REQUIRED: to be enabled manually
  108. # ^/_synapse/client/saml2/authn_response$
  109. # CAS requests.
  110. # FIXME: ADDITIONAL CONDITIONS REQUIRED: to be enabled manually
  111. # ^/_matrix/client/(api/v1|r0|v3|unstable)/login/cas/ticket$
  112. # Ensure that all SSO logins go to a single process.
  113. # For multiple workers not handling the SSO endpoints properly, see
  114. # [#7530](https://github.com/matrix-org/synapse/issues/7530) and
  115. # [#9427](https://github.com/matrix-org/synapse/issues/9427).
  116. # Note that a HTTP listener with `client` and `federation` resources must be
  117. # configured in the `worker_listeners` option in the worker config.
  118. # #### Load balancing
  119. # It is possible to run multiple instances of this worker app, with incoming requests
  120. # being load-balanced between them by the reverse-proxy. However, different endpoints
  121. # have different characteristics and so admins
  122. # may wish to run multiple groups of workers handling different endpoints so that
  123. # load balancing can be done in different ways.
  124. # For `/sync` and `/initialSync` requests it will be more efficient if all
  125. # requests from a particular user are routed to a single instance. Extracting a
  126. # user ID from the access token or `Authorization` header is currently left as an
  127. # exercise for the reader. Admins may additionally wish to separate out `/sync`
  128. # requests that have a `since` query parameter from those that don't (and
  129. # `/initialSync`), as requests that don't are known as "initial sync" that happens
  130. # when a user logs in on a new device and can be *very* resource intensive, so
  131. # isolating these requests will stop them from interfering with other users ongoing
  132. # syncs.
  133. # Federation and client requests can be balanced via simple round robin.
  134. # The inbound federation transaction request `^/_matrix/federation/v1/send/`
  135. # should be balanced by source IP so that transactions from the same remote server
  136. # go to the same process.
  137. # Registration/login requests can be handled separately purely to help ensure that
  138. # unexpected load doesn't affect new logins and sign ups.
  139. # Finally, event sending requests can be balanced by the room ID in the URI (or
  140. # the full URI, or even just round robin), the room ID is the path component after
  141. # `/rooms/`. If there is a large bridge connected that is sending or may send lots
  142. # of events, then a dedicated set of workers can be provisioned to limit the
  143. # effects of bursts of events from that bridge on events sent by normal users.
  144. # #### Stream writers
  145. # Additionally, the writing of specific streams (such as events) can be moved off
  146. # of the main process to a particular worker.
  147. # To enable this, the worker must have a HTTP replication listener configured,
  148. # have a `worker_name` and be listed in the `instance_map` config. The same worker
  149. # can handle multiple streams, but unless otherwise documented, each stream can only
  150. # have a single writer.
  151. # For example, to move event persistence off to a dedicated worker, the shared
  152. # configuration would include:
  153. # ```yaml
  154. # instance_map:
  155. # event_persister1:
  156. # host: localhost
  157. # port: 8034
  158. # stream_writers:
  159. # events: event_persister1
  160. # ```
  161. # An example for a stream writer instance:
  162. # ```yaml
  163. # {{#include systemd-with-workers/workers/event_persister.yaml}}
  164. # ```
  165. # Some of the streams have associated endpoints which, for maximum efficiency, should
  166. # be routed to the workers handling that stream. See below for the currently supported
  167. # streams and the endpoints associated with them:
  168. # ##### The `events` stream
  169. # The `events` stream experimentally supports having multiple writers, where work
  170. # is sharded between them by room ID. Note that you *must* restart all worker
  171. # instances when adding or removing event persisters. An example `stream_writers`
  172. # configuration with multiple writers:
  173. # ```yaml
  174. # stream_writers:
  175. # events:
  176. # - event_persister1
  177. # - event_persister2
  178. # ```
  179. # ##### The `typing` stream
  180. # The following endpoints should be routed directly to the worker configured as
  181. # the stream writer for the `typing` stream:
  182. # FIXME: ADDITIONAL CONDITIONS REQUIRED: to be enabled manually
  183. # ^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/typing
  184. # ##### The `to_device` stream
  185. # The following endpoints should be routed directly to the worker configured as
  186. # the stream writer for the `to_device` stream:
  187. # FIXME: ADDITIONAL CONDITIONS REQUIRED: to be enabled manually
  188. # ^/_matrix/client/(r0|v3|unstable)/sendToDevice/
  189. # ##### The `account_data` stream
  190. # The following endpoints should be routed directly to the worker configured as
  191. # the stream writer for the `account_data` stream:
  192. # FIXME: ADDITIONAL CONDITIONS REQUIRED: to be enabled manually
  193. # ^/_matrix/client/(r0|v3|unstable)/.*/tags
  194. # ^/_matrix/client/(r0|v3|unstable)/.*/account_data
  195. # ##### The `receipts` stream
  196. # The following endpoints should be routed directly to the worker configured as
  197. # the stream writer for the `receipts` stream:
  198. # FIXME: ADDITIONAL CONDITIONS REQUIRED: to be enabled manually
  199. # ^/_matrix/client/(r0|v3|unstable)/rooms/.*/receipt
  200. # ^/_matrix/client/(r0|v3|unstable)/rooms/.*/read_markers
  201. # ##### The `presence` stream
  202. # The following endpoints should be routed directly to the worker configured as
  203. # the stream writer for the `presence` stream:
  204. # FIXME: ADDITIONAL CONDITIONS REQUIRED: to be enabled manually
  205. # ^/_matrix/client/(api/v1|r0|v3|unstable)/presence/
  206. # #### Background tasks
  207. # There is also support for moving background tasks to a separate
  208. # worker. Background tasks are run periodically or started via replication. Exactly
  209. # which tasks are configured to run depends on your Synapse configuration (e.g. if
  210. # stats is enabled).
  211. # To enable this, the worker must have a `worker_name` and can be configured to run
  212. # background tasks. For example, to move background tasks to a dedicated worker,
  213. # the shared configuration would include:
  214. # ```yaml
  215. # run_background_tasks_on: background_worker
  216. # ```
  217. # You might also wish to investigate the `update_user_directory_from_worker` and
  218. # `media_instance_running_background_jobs` settings.
  219. # An example for a dedicated background worker instance:
  220. # ```yaml
  221. # {{#include systemd-with-workers/workers/background_worker.yaml}}
  222. # ```
  223. # #### Updating the User Directory
  224. # You can designate one generic worker to update the user directory.
  225. # Specify its name in the shared configuration as follows:
  226. # ```yaml
  227. # update_user_directory_from_worker: worker_name
  228. # ```
  229. # This work cannot be load-balanced; please ensure the main process is restarted
  230. # after setting this option in the shared configuration!
  231. # User directory updates allow REST endpoints matching the following regular
  232. # expressions to work:
  233. # FIXME: ADDITIONAL CONDITIONS REQUIRED: to be enabled manually
  234. # ^/_matrix/client/(r0|v3|unstable)/user_directory/search$
  235. # The above endpoints can be routed to any worker, though you may choose to route
  236. # it to the chosen user directory worker.
  237. # This style of configuration supersedes the legacy `synapse.app.user_dir`
  238. # worker application type.
  239. # #### Notifying Application Services
  240. # You can designate one generic worker to send output traffic to Application Services.
  241. # Specify its name in the shared configuration as follows:
  242. # ```yaml
  243. # notify_appservices_from_worker: worker_name
  244. # ```
  245. # This work cannot be load-balanced; please ensure the main process is restarted
  246. # after setting this option in the shared configuration!
  247. # This style of configuration supersedes the legacy `synapse.app.appservice`
  248. # worker application type.
  249. # pusher worker (no API endpoints) [
  250. # Handles sending push notifications to sygnal and email. Doesn't handle any
  251. # REST endpoints itself, but you should set `start_pushers: False` in the
  252. # shared configuration file to stop the main synapse sending push notifications.
  253. # To run multiple instances at once the `pusher_instances` option should list all
  254. # pusher instances by their worker name, e.g.:
  255. # ```yaml
  256. # pusher_instances:
  257. # - pusher_worker1
  258. # - pusher_worker2
  259. # ```
  260. # ]
  261. # appservice worker (no API endpoints) [
  262. # **Deprecated as of Synapse v1.59.** [Use `synapse.app.generic_worker` with the
  263. # `notify_appservices_from_worker` option instead.](#notifying-application-services)
  264. # Handles sending output traffic to Application Services. Doesn't handle any
  265. # REST endpoints itself, but you should set `notify_appservices: False` in the
  266. # shared configuration file to stop the main synapse sending appservice notifications.
  267. # Note this worker cannot be load-balanced: only one instance should be active.
  268. # ]
  269. # federation_sender worker (no API endpoints) [
  270. # Handles sending federation traffic to other servers. Doesn't handle any
  271. # REST endpoints itself, but you should set `send_federation: False` in the
  272. # shared configuration file to stop the main synapse sending this traffic.
  273. # If running multiple federation senders then you must list each
  274. # instance in the `federation_sender_instances` option by their `worker_name`.
  275. # All instances must be stopped and started when adding or removing instances.
  276. # For example:
  277. # ```yaml
  278. # federation_sender_instances:
  279. # - federation_sender1
  280. # - federation_sender2
  281. # ```
  282. # ]
  283. matrix_synapse_workers_media_repository_endpoints:
  284. # Handles the media repository. It can handle all endpoints starting with:
  285. - ^/_matrix/media/
  286. # ... and the following regular expressions matching media-specific administration APIs:
  287. - ^/_synapse/admin/v1/purge_media_cache$
  288. - ^/_synapse/admin/v1/room/.*/media.*$
  289. - ^/_synapse/admin/v1/user/.*/media.*$
  290. - ^/_synapse/admin/v1/media/.*$
  291. - ^/_synapse/admin/v1/quarantine_media/.*$
  292. - ^/_synapse/admin/v1/users/.*/media$
  293. # You should also set `enable_media_repo: False` in the shared configuration
  294. # file to stop the main synapse running background jobs related to managing the
  295. # media repository. Note that doing so will prevent the main process from being
  296. # able to handle the above endpoints.
  297. # In the `media_repository` worker configuration file, configure the http listener to
  298. # expose the `media` resource. For example:
  299. # ```yaml
  300. # worker_listeners:
  301. # - type: http
  302. # port: 8085
  303. # resources:
  304. # - names:
  305. # - media
  306. # ```
  307. # Note that if running multiple media repositories they must be on the same server
  308. # and you must configure a single instance to run the background tasks, e.g.:
  309. # ```yaml
  310. # media_instance_running_background_jobs: "media-repository-1"
  311. # ```
  312. # Note that if a reverse proxy is used , then `/_matrix/media/` must be routed for both inbound client and federation requests (if they are handled separately).
  313. matrix_synapse_workers_user_dir_endpoints:
  314. # **Deprecated as of Synapse v1.59.** [Use `synapse.app.generic_worker` with the
  315. # `update_user_directory_from_worker` option instead.](#updating-the-user-directory)
  316. # Handles searches in the user directory. It can handle REST endpoints matching
  317. # the following regular expressions:
  318. - ^/_matrix/client/(r0|v3|unstable)/user_directory/search$
  319. # When using this worker you must also set `update_user_directory: false` in the
  320. # shared configuration file to stop the main synapse running background
  321. # jobs related to updating the user directory.
  322. # Above endpoint is not *required* to be routed to this worker. By default,
  323. # `update_user_directory` is set to `true`, which means the main process
  324. # will handle updates. All workers configured with `client` can handle the above
  325. # endpoint as long as either this worker or the main process are configured to
  326. # handle it, and are online.
  327. # If `update_user_directory` is set to `false`, and this worker is not running,
  328. # the above endpoint may give outdated results.
  329. matrix_synapse_workers_avail_list:
  330. - appservice
  331. - federation_sender
  332. - generic_worker
  333. - media_repository
  334. - pusher
  335. - user_dir