matrix-docker-ansible-deploy/roles/matrix-base/templates/static-files/well-known/matrix-client.j2

53 lines
1.4 KiB
Django/Jinja

#jinja2: lstrip_blocks: "True"
{
"m.homeserver": {
"base_url": "{{ matrix_homeserver_url }}"
}
{% if matrix_identity_server_url %},
"m.identity_server": {
"base_url": "{{ matrix_identity_server_url }}"
}
{% endif %}
{% if matrix_integration_manager_rest_url and matrix_integration_manager_ui_url %},
"m.integrations": {
"managers": [
{
"api_url": "{{ matrix_integration_manager_rest_url }}",
"ui_url": "{{ matrix_integration_manager_ui_url }}"
}
]
}
{% endif %}
{% if matrix_client_element_jitsi_preferredDomain %},
"io.element.jitsi": {
"preferredDomain": {{ matrix_client_element_jitsi_preferredDomain|to_json }}
},
"im.vector.riot.jitsi": {
"preferredDomain": {{ matrix_client_element_jitsi_preferredDomain|to_json }}
}
{% endif %}
,
"io.element.e2ee": {
{% if not matrix_client_element_e2ee_default %}
"default": false,
{% else %}
"default": true,
{% endif %}
{% if matrix_client_element_e2ee_backup_required %}
"secure_backup_required": true
{% else %}
"secure_backup_required": false
{% endif %}
{% if matrix_client_element_e2ee_backup_methods %},
"secure_backup_setup_methods": {{ matrix_client_element_e2ee_backup_methods|to_json }}
{% endif %}
},
"im.vector.riot.e2ee": {
{% if not matrix_client_element_e2ee_default %}
"default": false
{% else %}
"default": true
{% endif %}
}
}