chore(synapse): support multiple bind addresses

This commit is contained in:
Lars Kaiser 2023-05-25 14:58:45 +02:00
parent 7572d9af5a
commit bbea0b5c0a
No known key found for this signature in database
GPG key ID: BB97304A16BC5DCF
2 changed files with 7 additions and 3 deletions

View file

@ -65,7 +65,12 @@ matrix_synapse_worker_metrics_port: 9101
matrix_synapse_workers_enabled: false
matrix_synapse_worker_replication_host: "{{ matrix_synapse_container_name }}"
matrix_synapse_worker_replication_port: 9003
matrix_synapse_worker_replication_bind_ip: "127.0.0.1"
matrix_synapse_worker_replication_bind_addresses: >-2
{{
[matrix_synapse_worker_replication_bind_ip]
if matrix_synapse_worker_replication_bind_ip is defined
else ["::1", "127.0.0.1"]
}}
matrix_synapse_worker_listener_base_port: 16000
matrix_synapse_worker_listener_bind_base_ip: "0.0.0.0"
matrix_synapse_worker_labels: {}

View file

@ -21,8 +21,7 @@ matrix_synapse_worker_metrics_listener:
matrix_synapse_worker_config:
listeners:
- port: "{{ matrix_synapse_worker_replication_port }}"
bind_addresses:
- "{{ matrix_synapse_worker_replication_bind_ip }}"
bind_addresses: "{{ matrix_synapse_worker_replication_bind_addresses }}"
type: http
resources:
- names: [ replication ]