archrelease: copy trunk to community-any
[ArchLinux/community.git] / matrix-synapse / repos / community-x86_64 / generic_worker.yaml.example
blob11cb3e83eb01c361874acd758e9f33ae7225d93f
1 # To configure workers please refer to:
2 # https://github.com/matrix-org/synapse/blob/master/docs/workers.md
4 # The type of the worker. A generic_worker can handle a part of the
5 # client/federation API requests, taking some load from the master
6 # process.
7 # If used, the reverse proxy has to be configured accordingly.
8 worker_app: synapse.app.generic_worker
10 # The name of the worker. Must be unique among all workers.
11 worker_name: worker1
13 # The replication listener on the main synapse process.
14 worker_replication_host: '127.0.0.1'
15 worker_replication_http_port: 9093
18 worker_listeners:
19  - type: http
20    bind_address: '127.0.0.1'
21    port: 8083
23 # Uncomment the following to make this worker respect the
24 # X-Forwarded-For header set by your reverse proxy.
25 #   x_forwarded: true
27 # Because a generic_worker handles client and federation API requests
28 # it needs the client and federation resources.
29    resources:
30      - names:
31        - client
32        - federation
34 worker_log_config: /etc/synapse/log_config.yaml