Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 58fdcbd

Browse files
mnowiaszrichvdh
authored andcommitted
Update workers.md to make media_repository work (again) (#6519)
1 parent e2cce15 commit 58fdcbd

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/workers.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Handles the media repository. It can handle all endpoints starting with:
196196

197197
/_matrix/media/
198198

199-
And the following regular expressions matching media-specific administration APIs:
199+
... and the following regular expressions matching media-specific administration APIs:
200200

201201
^/_synapse/admin/v1/purge_media_cache$
202202
^/_synapse/admin/v1/room/.*/media$
@@ -206,6 +206,18 @@ You should also set `enable_media_repo: False` in the shared configuration
206206
file to stop the main synapse running background jobs related to managing the
207207
media repository.
208208

209+
In the `media_repository` worker configuration file, configure the http listener to
210+
expose the `media` resource. For example:
211+
212+
```yaml
213+
worker_listeners:
214+
- type: http
215+
port: 8085
216+
resources:
217+
- names:
218+
- media
219+
```
220+
209221
Note this worker cannot be load-balanced: only one instance should be active.
210222
211223
### `synapse.app.client_reader`

0 commit comments

Comments
 (0)