diff --git a/charts/matrix-synapse/templates/configuration.yaml b/charts/matrix-synapse/templates/configuration.yaml index 7a63525..4216141 100644 --- a/charts/matrix-synapse/templates/configuration.yaml +++ b/charts/matrix-synapse/templates/configuration.yaml @@ -64,11 +64,12 @@ data: {{- end }} ## Ports ## + {{- $bindAddresses := .Values.config.bindAddresses | default (list "::") }} listeners: - port: 8008 tls: false - bind_addresses: ['::'] + bind_addresses: {{ toJson $bindAddresses }} type: http x_forwarded: true @@ -83,7 +84,7 @@ data: - port: 9090 tls: false - bind_addresses: ['::'] + bind_addresses: {{ toJson $bindAddresses }} type: http resources: @@ -92,7 +93,7 @@ data: - port: 9093 tls: false - bind_addresses: ['::'] + bind_addresses: {{ toJson $bindAddresses }} type: http resources: diff --git a/charts/matrix-synapse/templates/worker-configuration.yaml b/charts/matrix-synapse/templates/worker-configuration.yaml index c9d134c..40399b0 100644 --- a/charts/matrix-synapse/templates/worker-configuration.yaml +++ b/charts/matrix-synapse/templates/worker-configuration.yaml @@ -29,11 +29,12 @@ data: {{- end }} worker_name: {{ $config.name }} {{- end }} +{{- $bindAddresses := $config.bindAddresses | default $.Values.config.bindAddresses | default (list "::") }} worker_listeners: - port: 9090 tls: false - bind_addresses: ['::'] + bind_addresses: {{ toJson $bindAddresses }} type: http resources: @@ -47,7 +48,7 @@ data: - port: 9093 tls: false - bind_addresses: ['::'] + bind_addresses: {{ toJson $bindAddresses }} type: http x_forwarded: true @@ -58,7 +59,7 @@ data: - port: 8083 tls: false - bind_addresses: ['::'] + bind_addresses: {{ toJson $bindAddresses }} type: http x_forwarded: true diff --git a/charts/matrix-synapse/values.yaml b/charts/matrix-synapse/values.yaml index e89ef0b..51f643e 100644 --- a/charts/matrix-synapse/values.yaml +++ b/charts/matrix-synapse/values.yaml @@ -128,6 +128,11 @@ config: # verify_keys: # "ed25519:auto": "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw" + ## The bind addresses to use for the default listeners + ## + # bindAddresses: + # - '::' + ## Extra listeners to configure. ## extraListeners: []