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

Commit

Permalink
Update workers.md to make media_repository work (again) (#6519)
Browse files Browse the repository at this point in the history
* commit '58fdcbdfe':
  Update  workers.md to make media_repository work (again) (#6519)
  Remove #6369 changelog
  • Loading branch information
anoadragon453 committed Mar 19, 2020
2 parents fe97d69 + 58fdcbd commit e71d3cd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ Handles the media repository. It can handle all endpoints starting with:

/_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/room/.*/media$
Expand All @@ -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
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.
### `synapse.app.client_reader`
Expand Down

0 comments on commit e71d3cd

Please sign in to comment.