make 8448 configurable instead of hard codedpull/1403/head
| @@ -27,6 +27,8 @@ matrix_synapse_storage_path: "{{ matrix_synapse_base_path }}/storage" | |||||
| matrix_synapse_media_store_path: "{{ matrix_synapse_storage_path }}/media-store" | matrix_synapse_media_store_path: "{{ matrix_synapse_storage_path }}/media-store" | ||||
| matrix_synapse_ext_path: "{{ matrix_synapse_base_path }}/ext" | matrix_synapse_ext_path: "{{ matrix_synapse_base_path }}/ext" | ||||
| matrix_synapse_container_federation_api_port: 8448 | |||||
| matrix_synapse_container_federation_port: 8048 | matrix_synapse_container_federation_port: 8048 | ||||
| # Controls whether the matrix-synapse container exposes the Client/Server API port (tcp/8008 in the container). | # Controls whether the matrix-synapse container exposes the Client/Server API port (tcp/8008 in the container). | ||||
| @@ -269,14 +269,14 @@ default_room_version: {{ matrix_synapse_default_room_version|to_json }} | |||||
| listeners: | listeners: | ||||
| {% if matrix_synapse_metrics_enabled %} | {% if matrix_synapse_metrics_enabled %} | ||||
| - type: metrics | - type: metrics | ||||
| port: {{ matrix_synapse_metrics_port }} | |||||
| port: {{ matrix_synapse_metrics_port|to_json }} | |||||
| bind_addresses: | bind_addresses: | ||||
| - '0.0.0.0' | - '0.0.0.0' | ||||
| {% endif %} | {% endif %} | ||||
| {% if matrix_synapse_federation_port_enabled and matrix_synapse_tls_federation_listener_enabled %} | {% if matrix_synapse_federation_port_enabled and matrix_synapse_tls_federation_listener_enabled %} | ||||
| # TLS-enabled listener: for when matrix traffic is sent directly to synapse. | # TLS-enabled listener: for when matrix traffic is sent directly to synapse. | ||||
| - port: 8448 | |||||
| - port: {{ matrix_synapse_container_federation_api_port|to_json }} | |||||
| tls: true | tls: true | ||||
| bind_addresses: ['::'] | bind_addresses: ['::'] | ||||
| type: http | type: http | ||||
| @@ -43,7 +43,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-synapse \ | |||||
| -p {{ matrix_synapse_container_client_api_host_bind_port }}:8008 \ | -p {{ matrix_synapse_container_client_api_host_bind_port }}:8008 \ | ||||
| {% endif %} | {% endif %} | ||||
| {% if matrix_synapse_federation_enabled and matrix_synapse_tls_federation_listener_enabled and matrix_synapse_container_federation_api_tls_host_bind_port %} | {% if matrix_synapse_federation_enabled and matrix_synapse_tls_federation_listener_enabled and matrix_synapse_container_federation_api_tls_host_bind_port %} | ||||
| -p {{ matrix_synapse_container_federation_api_tls_host_bind_port }}:8448 \ | |||||
| -p {{ matrix_synapse_container_federation_api_tls_host_bind_port }}:{{ matrix_synapse_container_federation_api_port }} \ | |||||
| {% endif %} | {% endif %} | ||||
| {% if matrix_synapse_federation_enabled and matrix_synapse_container_federation_api_plain_host_bind_port %} | {% if matrix_synapse_federation_enabled and matrix_synapse_container_federation_api_plain_host_bind_port %} | ||||
| -p {{ matrix_synapse_container_federation_api_plain_host_bind_port }}:{{ matrix_synapse_container_federation_port }} \ | -p {{ matrix_synapse_container_federation_api_plain_host_bind_port }}:{{ matrix_synapse_container_federation_port }} \ | ||||