diff --git a/roles/custom/matrix-client-element/templates/config.json.j2 b/roles/custom/matrix-client-element/templates/config.json.j2 index 4a2ec1c5f..c9bc9e3f9 100644 --- a/roles/custom/matrix-client-element/templates/config.json.j2 +++ b/roles/custom/matrix-client-element/templates/config.json.j2 @@ -3,10 +3,12 @@ "m.homeserver": { "base_url": {{ matrix_client_element_default_hs_url | string | to_json }}, "server_name": {{ matrix_client_element_default_server_name | string | to_json }} - }, + } + {% if matrix_client_element_default_is_url %}, "m.identity_server": { "base_url": {{ matrix_client_element_default_is_url | string | to_json }} } + {% endif %} }, "setting_defaults": { "custom_themes": {{ matrix_client_element_setting_defaults_custom_themes | to_json }}