Mediaworker, not entirely clear yet.

This commit is contained in:
Hans van Zijst 2024-12-11 16:25:43 +01:00 committed by Hans van Zijst
parent f847f63f04
commit 03d08e9473

View file

@ -225,3 +225,21 @@ worker_listeners:
compress: false
```
### Mediaworker
To make sure the worker takes care of handling media, and not the main
process, we have to add `enable_media_repo: False` to the configuration file.
Then you create the worker, like this:
```
worker_app: "synapse.app.media_repository"
worker_name: "mediaworker1"
worker_log_config: "/data/log.config/media.log.config"
worker_listeners:
- path: "/run/matrix-synapse/inbound_mediaworker1.sock"
type: http
x_forwarded: true
resources:
- names: [media]
```