1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Update configuration from upstream

This commit is contained in:
Josué Tille 2022-05-28 00:17:09 +02:00
parent 0c09b361df
commit 45a06ac69a
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
6 changed files with 1724 additions and 527 deletions

File diff suppressed because it is too large Load diff

View file

@ -63,3 +63,9 @@ install_sources() {
ynh_secure_remove --file=$final_path/.cargo
fi
}
get_domain_list() {
yunohost --output-as plain domain list | grep -E "^#" -v | sort | uniq | while read domain; do
echo -n " - https://$domain\n"
done
}

View file

@ -48,6 +48,7 @@ synapse_db_name="matrix_$app"
synapse_db_user="matrix_$app"
synapse_db_name="matrix_$app"
upstream_version=$(ynh_app_upstream_version)
domain_whitelist_client=$(get_domain_list)
# Check if the new path stay /_matrix if not exit

View file

@ -27,6 +27,7 @@ is_free_registration=$(ynh_app_setting_get --app $app --key is_free_registration
jitsi_server=$(ynh_app_setting_get --app=$app --key=jitsi_server)
e2e_enabled_by_default=$(ynh_app_setting_get --app=$app --key=e2e_enabled_by_default)
synapse_user_app_pwd=$(ynh_app_setting_get --app=$app --key=synapse_user_app_pwd)
domain_whitelist_client=$(get_domain_list)
#=================================================
# SHOW_CONFIG FUNCTION FOR 'SHOW' COMMAND

View file

@ -36,6 +36,7 @@ report_stats="false"
allow_public_rooms="false"
e2e_enabled_by_default="true"
default_domain_value="Same than the domain"
domain_whitelist_client=$(get_domain_list)
#=================================================
# RETRIEVE ARGUMENTS FROM THE MANIFEST

View file

@ -41,6 +41,7 @@ registration_shared_secret=$(ynh_app_setting_get --app=$app --key=registration_s
form_secret=$(ynh_app_setting_get --app=$app --key=form_secret)
macaroon_secret_key=$(ynh_app_setting_get --app=$app --key=macaroon_secret_key)
synapse_user_app_pwd=$(ynh_app_setting_get --app=$app --key=synapse_user_app_pwd)
domain_whitelist_client=$(get_domain_list)
#=================================================
# SET ALL CONSTANT