mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 15:08:49 +03:00
Remove not needed replication
listener in docker compose example (#14107)
This commit is contained in:
parent
40bb37eb27
commit
1eb8dcf4c9
4 changed files with 2 additions and 25 deletions
1
changelog.d/14107.doc
Normal file
1
changelog.d/14107.doc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Remove not needed `replication` listener in docker compose example.
|
|
@ -94,20 +94,6 @@ worker_replication_host: synapse
|
||||||
worker_replication_http_port: 9093
|
worker_replication_http_port: 9093
|
||||||
```
|
```
|
||||||
|
|
||||||
### Add Workers to `instance_map`
|
|
||||||
|
|
||||||
Locate the `instance_map` section of your `homeserver.yaml` and populate it with your workers:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
instance_map:
|
|
||||||
synapse-generic-worker-1: # The worker_name setting in your worker configuration file
|
|
||||||
host: synapse-generic-worker-1 # The name of the worker service in your Docker Compose file
|
|
||||||
port: 8034 # The port assigned to the replication listener in your worker config file
|
|
||||||
synapse-federation-sender-1:
|
|
||||||
host: synapse-federation-sender-1
|
|
||||||
port: 8034
|
|
||||||
```
|
|
||||||
|
|
||||||
### Configure Federation Senders
|
### Configure Federation Senders
|
||||||
|
|
||||||
This section is applicable if you are using Federation senders (synapse.app.federation_sender). Locate the `send_federation` and `federation_sender_instances` settings in your `homeserver.yaml` and configure them:
|
This section is applicable if you are using Federation senders (synapse.app.federation_sender). Locate the `send_federation` and `federation_sender_instances` settings in your `homeserver.yaml` and configure them:
|
||||||
|
|
|
@ -5,10 +5,4 @@ worker_name: synapse-federation-sender-1
|
||||||
worker_replication_host: synapse
|
worker_replication_host: synapse
|
||||||
worker_replication_http_port: 9093
|
worker_replication_http_port: 9093
|
||||||
|
|
||||||
worker_listeners:
|
|
||||||
- type: http
|
|
||||||
port: 8034
|
|
||||||
resources:
|
|
||||||
- names: [replication]
|
|
||||||
|
|
||||||
worker_log_config: /data/federation_sender.log.config
|
worker_log_config: /data/federation_sender.log.config
|
||||||
|
|
|
@ -6,10 +6,6 @@ worker_replication_host: synapse
|
||||||
worker_replication_http_port: 9093
|
worker_replication_http_port: 9093
|
||||||
|
|
||||||
worker_listeners:
|
worker_listeners:
|
||||||
- type: http
|
|
||||||
port: 8034
|
|
||||||
resources:
|
|
||||||
- names: [replication]
|
|
||||||
- type: http
|
- type: http
|
||||||
port: 8081
|
port: 8081
|
||||||
x_forwarded: true
|
x_forwarded: true
|
||||||
|
|
Loading…
Reference in a new issue