Merge pull request #2511 from igogold/patch-1
Allow configure default country code in element welcome page.
This commit is contained in:
commit
d04132759b
|
@ -191,6 +191,9 @@ matrix_client_element_self_check_validate_certificates: true
|
||||||
# don't show the registration button on welcome page
|
# don't show the registration button on welcome page
|
||||||
matrix_client_element_registration_enabled: false
|
matrix_client_element_registration_enabled: false
|
||||||
|
|
||||||
|
# Default country code on welcome page when login by phone number
|
||||||
|
matrix_client_element_default_country_code: "GB"
|
||||||
|
|
||||||
# Controls whether presence will be enabled
|
# Controls whether presence will be enabled
|
||||||
matrix_client_element_enable_presence_by_hs_url: ~
|
matrix_client_element_enable_presence_by_hs_url: ~
|
||||||
|
|
||||||
|
|
|
@ -1,48 +1,49 @@
|
||||||
{
|
{
|
||||||
"default_server_config": {
|
"default_server_config": {
|
||||||
"m.homeserver": {
|
"m.homeserver": {
|
||||||
"base_url": {{ matrix_client_element_default_hs_url | string|to_json }},
|
"base_url": {{ matrix_client_element_default_hs_url | string | to_json }},
|
||||||
"server_name": {{ matrix_client_element_default_server_name | string|to_json }}
|
"server_name": {{ matrix_client_element_default_server_name | string | to_json }}
|
||||||
},
|
},
|
||||||
"m.identity_server": {
|
"m.identity_server": {
|
||||||
"base_url": {{ matrix_client_element_default_is_url | string|to_json }}
|
"base_url": {{ matrix_client_element_default_is_url | string | to_json }}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingDefaults": {
|
"settingDefaults": {
|
||||||
"custom_themes": {{ matrix_client_element_settingDefaults_custom_themes|to_json }}
|
"custom_themes": {{ matrix_client_element_settingDefaults_custom_themes | to_json }}
|
||||||
},
|
},
|
||||||
"default_theme": {{ matrix_client_element_default_theme | string|to_json }},
|
"default_theme": {{ matrix_client_element_default_theme | string | to_json }},
|
||||||
"permalinkPrefix": {{ matrix_client_element_permalinkPrefix | string|to_json }},
|
"default_country_code": {{ matrix_client_element_default_country_code | string | to_json }},
|
||||||
"disable_custom_urls": {{ matrix_client_element_disable_custom_urls|to_json }},
|
"permalinkPrefix": {{ matrix_client_element_permalinkPrefix | string | to_json }},
|
||||||
"disable_guests": {{ matrix_client_element_disable_guests|to_json }},
|
"disable_custom_urls": {{ matrix_client_element_disable_custom_urls | to_json }},
|
||||||
"brand": {{ matrix_client_element_brand|to_json }},
|
"disable_guests": {{ matrix_client_element_disable_guests | to_json }},
|
||||||
"integrations_ui_url": {{ matrix_client_element_integrations_ui_url | string|to_json }},
|
"brand": {{ matrix_client_element_brand | to_json }},
|
||||||
"integrations_rest_url": {{ matrix_client_element_integrations_rest_url | string|to_json }},
|
"integrations_ui_url": {{ matrix_client_element_integrations_ui_url | string | to_json }},
|
||||||
"integrations_widgets_urls": {{ matrix_client_element_integrations_widgets_urls|to_json }},
|
"integrations_rest_url": {{ matrix_client_element_integrations_rest_url | string | to_json }},
|
||||||
"integrations_jitsi_widget_url": {{ matrix_client_element_integrations_jitsi_widget_url | string|to_json }},
|
"integrations_widgets_urls": {{ matrix_client_element_integrations_widgets_urls | to_json }},
|
||||||
"bug_report_endpoint_url": {{ matrix_client_element_bug_report_endpoint_url|to_json }},
|
"integrations_jitsi_widget_url": {{ matrix_client_element_integrations_jitsi_widget_url | string | to_json }},
|
||||||
"showLabsSettings": {{ matrix_client_element_showLabsSettings|to_json }},
|
"bug_report_endpoint_url": {{ matrix_client_element_bug_report_endpoint_url | to_json }},
|
||||||
|
"showLabsSettings": {{ matrix_client_element_showLabsSettings | to_json }},
|
||||||
"roomDirectory": {
|
"roomDirectory": {
|
||||||
"servers": {{ matrix_client_element_roomdir_servers|to_json }}
|
"servers": {{ matrix_client_element_roomdir_servers | to_json }}
|
||||||
},
|
},
|
||||||
"welcomeUserId": {{ matrix_client_element_welcome_user_id|to_json }},
|
"welcomeUserId": {{ matrix_client_element_welcome_user_id | to_json }},
|
||||||
{% if matrix_client_element_enable_presence_by_hs_url is not none %}
|
{% if matrix_client_element_enable_presence_by_hs_url is not none %}
|
||||||
"enable_presence_by_hs_url": {{ matrix_client_element_enable_presence_by_hs_url|to_json }},
|
"enable_presence_by_hs_url": {{ matrix_client_element_enable_presence_by_hs_url | to_json }},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
"embeddedPages": {
|
"embeddedPages": {
|
||||||
"homeUrl": {{ matrix_client_element_embedded_pages_home_url | string|to_json }}
|
"homeUrl": {{ matrix_client_element_embedded_pages_home_url | string | to_json }}
|
||||||
},
|
},
|
||||||
{% if matrix_client_element_jitsi_preferredDomain %}
|
{% if matrix_client_element_jitsi_preferredDomain %}
|
||||||
"jitsi": {
|
"jitsi": {
|
||||||
"preferredDomain": {{ matrix_client_element_jitsi_preferredDomain|to_json }}
|
"preferredDomain": {{ matrix_client_element_jitsi_preferredDomain | to_json }}
|
||||||
},
|
},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if matrix_client_element_location_sharing_enabled %}
|
{% if matrix_client_element_location_sharing_enabled %}
|
||||||
"map_style_url": "https://{{ matrix_server_fqn_element }}/map_style.json",
|
"map_style_url": "https://{{ matrix_server_fqn_element }}/map_style.json",
|
||||||
{% endif %}
|
{% endif %}
|
||||||
"branding": {
|
"branding": {
|
||||||
"authFooterLinks": {{ matrix_client_element_branding_authFooterLinks|to_json }},
|
"authFooterLinks": {{ matrix_client_element_branding_authFooterLinks | to_json }},
|
||||||
"authHeaderLogoUrl": {{ matrix_client_element_branding_authHeaderLogoUrl|to_json }},
|
"authHeaderLogoUrl": {{ matrix_client_element_branding_authHeaderLogoUrl | to_json }},
|
||||||
"welcomeBackgroundUrl": {{ matrix_client_element_branding_welcomeBackgroundUrl|to_json }}
|
"welcomeBackgroundUrl": {{ matrix_client_element_branding_welcomeBackgroundUrl | to_json }}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue