@ -435,7 +435,7 @@ matrix_jitsi_web_stun_servers: |
# By default, this playbook sets up a postfix mailer server (running in a container).
# By default, this playbook sets up a postfix mailer server (running in a container).
# This is so that Synapse can send email reminders for unread messages.
# This is so that Synapse can send email reminders for unread messages.
# Other services (like mxi sd), also use the mailer.
# Other services (like ma1 sd), also use the mailer.
matrix_mailer_enabled: true
matrix_mailer_enabled: true
######################################################################
######################################################################
@ -448,41 +448,41 @@ matrix_mailer_enabled: true
######################################################################
######################################################################
#
#
# matrix-mxi sd
# matrix-ma1 sd
#
#
######################################################################
######################################################################
# By default, this playbook installs the mxi sd identity server on the same domain as Synapse (`matrix_server_fqn_matrix`).
# By default, this playbook installs the ma1 sd identity server on the same domain as Synapse (`matrix_server_fqn_matrix`).
# If you wish to use the public identity servers (matrix.org, vector.im) instead of your own you may wish to disable this.
# If you wish to use the public identity servers (matrix.org, vector.im) instead of your own you may wish to disable this.
matrix_mxi sd_enabled: true
matrix_ma1 sd_enabled: true
matrix_mxi sd_container_image_self_build: "{{ matrix_container_images_self_build }}"
matrix_ma1 sd_container_image_self_build: "{{ matrix_container_images_self_build }}"
# Normally, matrix-nginx-proxy is enabled and nginx can reach mxi sd over the container network.
# Normally, matrix-nginx-proxy is enabled and nginx can reach ma1 sd over the container network.
# If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
# If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
# mxi sd's web-server port.
# ma1 sd's web-server port.
matrix_mxi sd_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8090' }}"
matrix_ma1 sd_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:8090' }}"
# We enable Synapse integration via its Postgres database by default.
# We enable Synapse integration via its Postgres database by default.
# When using another Identity store, you might wish to disable this and define
# When using another Identity store, you might wish to disable this and define
# your own configuration in `matrix_mxi sd_configuration_extension_yaml`.
# your own configuration in `matrix_ma1 sd_configuration_extension_yaml`.
matrix_mxi sd_synapsesql_enabled: true
matrix_ma1 sd_synapsesql_enabled: true
matrix_mxi sd_synapsesql_type: postgresql
matrix_ma1 sd_synapsesql_type: postgresql
matrix_mxi sd_synapsesql_connection: //{{ matrix_synapse_database_host }}/{{ matrix_synapse_database_database }}?user={{ matrix_synapse_database_user | urlencode() }}&password={{ matrix_synapse_database_password | urlencode() }}
matrix_ma1 sd_synapsesql_connection: //{{ matrix_synapse_database_host }}/{{ matrix_synapse_database_database }}?user={{ matrix_synapse_database_user | urlencode() }}&password={{ matrix_synapse_database_password | urlencode() }}
matrix_mxi sd_dns_overwrite_enabled: true
matrix_ma1 sd_dns_overwrite_enabled: true
matrix_mxi sd_dns_overwrite_homeserver_client_name: "{{ matrix_server_fqn_matrix }}"
matrix_ma1 sd_dns_overwrite_homeserver_client_name: "{{ matrix_server_fqn_matrix }}"
matrix_mxi sd_dns_overwrite_homeserver_client_value: "http://{{ 'matrix-corporal:41080' if matrix_corporal_enabled else 'matrix-synapse:8008' }}"
matrix_ma1 sd_dns_overwrite_homeserver_client_value: "http://{{ 'matrix-corporal:41080' if matrix_corporal_enabled else 'matrix-synapse:8008' }}"
# By default, we send mail through the `matrix-mailer` service.
# By default, we send mail through the `matrix-mailer` service.
matrix_mxi sd_threepid_medium_email_identity_from: "{{ matrix_mailer_sender_address }}"
matrix_ma1 sd_threepid_medium_email_identity_from: "{{ matrix_mailer_sender_address }}"
matrix_mxi sd_threepid_medium_email_connectors_smtp_host: "matrix-mailer"
matrix_ma1 sd_threepid_medium_email_connectors_smtp_host: "matrix-mailer"
matrix_mxi sd_threepid_medium_email_connectors_smtp_port: 8025
matrix_ma1 sd_threepid_medium_email_connectors_smtp_port: 8025
matrix_mxi sd_threepid_medium_email_connectors_smtp_tls: 0
matrix_ma1 sd_threepid_medium_email_connectors_smtp_tls: 0
matrix_mxi sd_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else false }}"
matrix_ma1 sd_self_check_validate_certificates: "{{ false if matrix_ssl_retrieval_method == 'self-signed' else false }}"
matrix_mxi sd_systemd_wanted_services_list: |
matrix_ma1 sd_systemd_wanted_services_list: |
{{
{{
(['matrix-corporal.service'] if matrix_corporal_enabled else ['matrix-synapse.service'])
(['matrix-corporal.service'] if matrix_corporal_enabled else ['matrix-synapse.service'])
+
+
@ -493,7 +493,7 @@ matrix_mxisd_systemd_wanted_services_list: |
######################################################################
######################################################################
#
#
# /matrix-mxi sd
# /matrix-ma1 sd
#
#
######################################################################
######################################################################
@ -523,8 +523,8 @@ matrix_nginx_proxy_proxy_matrix_corporal_api_enabled: "{{ matrix_corporal_enable
matrix_nginx_proxy_proxy_matrix_corporal_api_addr_with_container: "matrix-corporal:41081"
matrix_nginx_proxy_proxy_matrix_corporal_api_addr_with_container: "matrix-corporal:41081"
matrix_nginx_proxy_proxy_matrix_corporal_api_addr_sans_container: "127.0.0.1:41081"
matrix_nginx_proxy_proxy_matrix_corporal_api_addr_sans_container: "127.0.0.1:41081"
matrix_nginx_proxy_proxy_matrix_identity_api_enabled: "{{ matrix_mxi sd_enabled }}"
matrix_nginx_proxy_proxy_matrix_identity_api_enabled: "{{ matrix_ma1 sd_enabled }}"
matrix_nginx_proxy_proxy_matrix_identity_api_addr_with_container: "matrix-mxi sd:8090"
matrix_nginx_proxy_proxy_matrix_identity_api_addr_with_container: "matrix-ma1 sd:8090"
matrix_nginx_proxy_proxy_matrix_identity_api_addr_sans_container: "127.0.0.1:8090"
matrix_nginx_proxy_proxy_matrix_identity_api_addr_sans_container: "127.0.0.1:8090"
# By default, we do TLS termination for the Matrix Federation API (port 8448) at matrix-nginx-proxy.
# By default, we do TLS termination for the Matrix Federation API (port 8448) at matrix-nginx-proxy.
@ -536,7 +536,7 @@ matrix_nginx_proxy_proxy_synapse_metrics: "{{ matrix_synapse_metrics_enabled }}"
matrix_nginx_proxy_proxy_synapse_metrics_addr_with_container: "matrix-synapse:{{ matrix_synapse_metrics_port }}"
matrix_nginx_proxy_proxy_synapse_metrics_addr_with_container: "matrix-synapse:{{ matrix_synapse_metrics_port }}"
matrix_nginx_proxy_proxy_synapse_metrics_addr_sans_container: "127.0.0.1:{{ matrix_synapse_metrics_port }}"
matrix_nginx_proxy_proxy_synapse_metrics_addr_sans_container: "127.0.0.1:{{ matrix_synapse_metrics_port }}"
matrix_nginx_proxy_proxy_matrix_user_directory_search_enabled: "{{ matrix_mxi sd_enabled }}"
matrix_nginx_proxy_proxy_matrix_user_directory_search_enabled: "{{ matrix_ma1 sd_enabled }}"
matrix_nginx_proxy_proxy_matrix_user_directory_search_addr_with_container: "{{ matrix_nginx_proxy_proxy_matrix_identity_api_addr_with_container }}"
matrix_nginx_proxy_proxy_matrix_user_directory_search_addr_with_container: "{{ matrix_nginx_proxy_proxy_matrix_identity_api_addr_with_container }}"
matrix_nginx_proxy_proxy_matrix_user_directory_search_addr_sans_container: "{{ matrix_nginx_proxy_proxy_matrix_identity_api_addr_sans_container }}"
matrix_nginx_proxy_proxy_matrix_user_directory_search_addr_sans_container: "{{ matrix_nginx_proxy_proxy_matrix_identity_api_addr_sans_container }}"
@ -548,7 +548,7 @@ matrix_nginx_proxy_systemd_wanted_services_list: |
+
+
(['matrix-corporal.service'] if matrix_corporal_enabled else [])
(['matrix-corporal.service'] if matrix_corporal_enabled else [])
+
+
(['matrix-mxisd.service'] if matrix_mxi sd_enabled else [])
(['matrix-ma1sd.service'] if matrix_ma1 sd_enabled else [])
+
+
(['matrix-riot-web.service'] if matrix_riot_web_enabled else [])
(['matrix-riot-web.service'] if matrix_riot_web_enabled else [])
}}
}}
@ -652,8 +652,8 @@ matrix_riot_web_jitsi_preferredDomain: "{{ matrix_server_fqn_jitsi if matrix_jit
matrix_synapse_container_image_self_build: "{{ matrix_container_images_self_build }}"
matrix_synapse_container_image_self_build: "{{ matrix_container_images_self_build }}"
# When mxi sd is enabled, we can use it instead of the default public Identity servers.
# When ma1 sd is enabled, we can use it instead of the default public Identity servers.
matrix_synapse_trusted_third_party_id_servers: "{{ [matrix_server_fqn_matrix] if matrix_mxi sd_enabled else matrix_synapse_id_servers_public }}"
matrix_synapse_trusted_third_party_id_servers: "{{ [matrix_server_fqn_matrix] if matrix_ma1 sd_enabled else matrix_synapse_id_servers_public }}"
# Normally, matrix-nginx-proxy is enabled and nginx can reach Synapse over the container network.
# Normally, matrix-nginx-proxy is enabled and nginx can reach Synapse over the container network.
# If matrix-nginx-proxy is not enabled, or you otherwise have a need for it,
# If matrix-nginx-proxy is not enabled, or you otherwise have a need for it,