cleanup ip address bindings
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-04-03 16:48:40 +02:00
parent d3be37f756
commit 9b4bc468ab
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 6 additions and 3 deletions

View File

@ -45,11 +45,10 @@ matrix_web_client_location: /path/to/web/root
matrix_filter_timeline_limit: -1
matrix_http_bind_ips:
- '::'
- '0.0.0.0'
- "127.0.0.1"
matrix_http_bind_port: 8008
matrix_https_bind_ips: "{{ matrix_http_bind_ips }}"
matrix_https_bind_ips: []
matrix_https_bind_port: 8448
matrix_ldap_auth_enabled: False

View File

@ -61,6 +61,7 @@ federation_ip_range_blacklist:
# List of ports that Synapse should listen on, their purpose and their
# configuration.
listeners:
{% if matrix_https_bind_ips is defined and matrix_https_bind_ips | length > 0 %}
# TLS-enabled listener: for when matrix traffic is sent directly to synapse.
- port: {{ matrix_https_bind_port }}
bind_addresses:
@ -74,6 +75,8 @@ listeners:
resources:
- names: [client, federation]
compress: false
{% endif %}
{% if matrix_http_bind_ips is defined and matrix_http_bind_ips | length > 0 %}
# Unsecure HTTP listener: for when matrix traffic passes through a reverse proxy
# that unwraps TLS.
@ -87,6 +90,7 @@ listeners:
resources:
- names: [client, federation]
compress: false
{% endif %}
## Homeserver blocking ##