1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/element_ynh.git synced 2024-09-03 18:36:08 +02:00

Update config from upstream

This commit is contained in:
Josué Tille 2023-11-30 15:59:43 +01:00
parent b11044de1a
commit bc8d9c5b51
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
5 changed files with 51 additions and 20 deletions

View file

@ -1,16 +1,32 @@
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://__DEFAULT_HOME_SERVER__"
"base_url": "https://__DEFAULT_HOME_SERVER__",
"server_name": "matrix.org"
},
"m.identity_server": {
"base_url": "https://vector.im"
}
},
"disable_custom_urls": false,
"disable_guests": false,
"disable_login_language_selector": false,
"disable_3pid_login": false,
"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.riot.im/scalar/api"
],
"default_country_code": "GB",
"show_labs_settings": false,
"features": {},
"default_federate": true,
"default_theme": "light",
"room_directory": {
"servers": ["matrix.org"]
},
@ -18,7 +34,16 @@
"https://matrix.org": false,
"https://matrix-client.matrix.org": false
},
"embedded_pages": {
"login_for_welcome": __LOGIN_FOR_WELCOME__
}
"setting_defaults": {
"breadcrumbs": true
},
"jitsi": {
"preferred_domain": "meet.element.io"
},
"element_call": {
"url": "https://call.element.io",
"participant_limit": 8,
"brand": "Element Call"
},
"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx"
}

View file

@ -15,12 +15,3 @@ name.fr = "Configuration d'Element"
default = "matrix.org"
help.en = "Define Matrix default home server address."
help.fr = "Définir l'adresse du serveur par défaut de Matrix."
[main.config.login_for_welcome]
ask.en = "Display login as welcome page"
ask.fr = "Afficher la connexion comme page d'accueil"
type = "boolean"
yes = true
no = false
help.en = "When true, the app will use the login form as a welcome page instead of the welcome page itself. This disables use of welcome_url and all welcome page functionality."
help.fr = "Quand l'option est sélectionnée, l'application utilisera le formulaire de connexion comme page d'accueil au lieu de la page d'accueil elle-même. Cela désactive l'utilisation de welcome_url et de toutes les fonctionnalités de la page d'accueil."

22
scripts/config Normal file
View file

@ -0,0 +1,22 @@
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source ./_common.sh
source /usr/share/yunohost/helpers
ynh_app_config_apply() {
_ynh_app_config_apply
configure_element
}
#=================================================
# GENERIC FINALIZATION
#=================================================
# SELECT THE ACTION FOLLOWING THE GIVEN ARGUMENT
#=================================================
ynh_app_config_run $1

View file

@ -13,8 +13,6 @@ source /usr/share/yunohost/helpers
# RETRIEVE ARGUMENTS FROM THE MANIFEST
#=================================================
login_for_welcome=true
ynh_app_setting_set --app=$app --key=login_for_welcome --value=$login_for_welcome
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE

View file

@ -26,11 +26,6 @@ if [ -z "${default_home_server:-}" ]; then
ynh_app_setting_set --app=$app --key=default_home_server --value=$default_home_server
fi
if [ -z "${login_for_welcome:-}" ]; then
login_for_welcome=true
ynh_app_setting_set --app=$app --key=login_for_welcome --value=$login_for_welcome
fi
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================