forked from Fediversity/Fediversity
Mediaworker, not entirely clear yet.
This commit is contained in:
parent
f847f63f04
commit
03d08e9473
|
@ -225,3 +225,21 @@ worker_listeners:
|
||||||
compress: false
|
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]
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue