mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-01 10:41:55 +00:00
Update workers.md to make media_repository work (again) (#6519)
This commit is contained in:
parent
e2cce15af1
commit
58fdcbdfe7
@ -196,7 +196,7 @@ Handles the media repository. It can handle all endpoints starting with:
|
|||||||
|
|
||||||
/_matrix/media/
|
/_matrix/media/
|
||||||
|
|
||||||
And the following regular expressions matching media-specific administration APIs:
|
... and the following regular expressions matching media-specific administration APIs:
|
||||||
|
|
||||||
^/_synapse/admin/v1/purge_media_cache$
|
^/_synapse/admin/v1/purge_media_cache$
|
||||||
^/_synapse/admin/v1/room/.*/media$
|
^/_synapse/admin/v1/room/.*/media$
|
||||||
@ -206,6 +206,18 @@ You should also set `enable_media_repo: False` in the shared configuration
|
|||||||
file to stop the main synapse running background jobs related to managing the
|
file to stop the main synapse running background jobs related to managing the
|
||||||
media repository.
|
media repository.
|
||||||
|
|
||||||
|
In the `media_repository` worker configuration file, configure the http listener to
|
||||||
|
expose the `media` resource. For example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
worker_listeners:
|
||||||
|
- type: http
|
||||||
|
port: 8085
|
||||||
|
resources:
|
||||||
|
- names:
|
||||||
|
- media
|
||||||
|
```
|
||||||
|
|
||||||
Note this worker cannot be load-balanced: only one instance should be active.
|
Note this worker cannot be load-balanced: only one instance should be active.
|
||||||
|
|
||||||
### `synapse.app.client_reader`
|
### `synapse.app.client_reader`
|
||||||
|
Loading…
Reference in New Issue
Block a user