ansible-roles/roles/matrix_element/templates/config.json.j2

43 lines
1.6 KiB
Django/Jinja

{
"default_hs_url": "{{ element_default_home_server | default('https://' + synapse_server_name) | default('https://matrix.org') }}",
"default_is_url": "{{ element_default_identity_server }}",
"brand": "Element",
"integrations_ui_url": "https://scalar.vector.im/",
"integrations_rest_url": "https://scalar.vector.im/api",
"integrations_widgets_urls": [
"https://scalar.vector.im/_matrix/integrations/v1",
"https://scalar.vector.im/api",
"https://scalar-staging.vector.im/_matrix/integrations/v1",
"https://scalar-staging.vector.im/api",
"https://scalar-staging.element.im/scalar/api"
],
"bug_report_endpoint_url": "https://element.im/bugreports/submit",
"showLabsSettings": true,
"roomDirectory": {
"servers": [
"matrix.org"
]
},
"welcomeUserId": "@riot-bot:matrix.org",
"piwik": {
},
{% if element_jitsi_server is defined %}
"jitsi": {
"preferredDomain": "{{ element_jitsi_server }}"
},
{% endif %}
"settingDefaults": {
"UIFeature.feedback": false,
"UIFeature.thirdPartyId": false,
{% if synapse_auth is defined and 'internal' not in synapse_auth and synapse_auth != 'internal' %}
"UIFeature.passwordReset": false,
"UIFeature.deactivate": false,
{% endif %}
"UIFeature.registration": {{ (synapse_enable_registration | default(False)) | ternary('true', 'false') }}
},
{% if element_map_style_url is defined and element_map_style_url != '' %}
"map_style_url": "{{ element_map_style_url }}",
{% endif %}
"happyJson": true
}