Add support for controlling Matrix federation

This commit is contained in:
Slavi Pantaleev
2018-10-25 18:02:04 +03:00
parent caa32b6d76
commit 67a445a74a
6 changed files with 53 additions and 0 deletions

View File

@ -119,12 +119,16 @@ use_presence: {{ matrix_synapse_use_presence|to_json }}
# - lon.example.com
# - nyc.example.com
# - syd.example.com
{% if matrix_synapse_federation_domain_whitelist is not none %}
federation_domain_whitelist: {{ matrix_synapse_federation_domain_whitelist|to_json }}
{% endif %}
# List of ports that Synapse should listen on, their purpose and their
# configuration.
listeners:
# Main HTTPS listener
# For when matrix traffic is sent directly to synapse.
{% if matrix_synapse_federation_enabled %}
-
# The port to listen for HTTPS requests on.
port: 8448
@ -157,6 +161,7 @@ listeners:
# "/_matrix/my/custom/endpoint":
# module: my_module.CustomRequestHandler
# config: {}
{% endif %}
# Unsecure HTTP listener,
# For when matrix traffic passes through loadbalancer that unwraps TLS.

View File

@ -29,7 +29,9 @@ ExecStart=/usr/bin/docker run --rm --name matrix-synapse \
--log-driver=none \
--env-file={{ matrix_environment_variables_data_path }}/synapse \
--network={{ matrix_docker_network }} \
{% if matrix_synapse_federation_enabled %}
-p 8448:8448 \
{% endif %}
{% if not matrix_nginx_proxy_enabled %}
-p 127.0.0.1:8008:8008 \
{% endif %}