diff --git a/scripts/change_url b/scripts/change_url index 440e2c9..29d63ff 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -28,6 +28,10 @@ configure_nginx #================================================= ynh_script_progression --message="Updating Synapse config..." --weight=2 + +# Force enable it because some client like Element X don't support CAS and so require to have password authentication enabled +password_enabled=true + ynh_add_jinja_config --template="homeserver.yaml" --destination="/etc/matrix-$app/homeserver.yaml" ynh_add_config --template="log.yaml" --destination="/etc/matrix-$app/log.yaml" diff --git a/scripts/config b/scripts/config index 51ee2fe..d2ef516 100644 --- a/scripts/config +++ b/scripts/config @@ -27,6 +27,10 @@ ynh_app_config_validate() { ynh_app_config_apply() { _ynh_app_config_apply configure_nginx + + # Force enable it because some client like Element X don't support CAS and so require to have password authentication enabled + password_enabled=true + ynh_add_jinja_config --template="homeserver.yaml" --destination="/etc/matrix-$app/homeserver.yaml" ynh_add_config --template="log.yaml" --destination="/etc/matrix-$app/log.yaml" set_permissions diff --git a/scripts/install b/scripts/install index 9d6cd0e..b4f7711 100644 --- a/scripts/install +++ b/scripts/install @@ -159,6 +159,9 @@ configure_nginx #================================================= ynh_script_progression --message="Configuring Synapse..." --weight=2 +# Force enable it because some client like Element X don't support CAS and so require to have password authentication enabled +password_enabled=true + ynh_add_jinja_config --template="homeserver.yaml" --destination="/etc/matrix-$app/homeserver.yaml" ynh_add_config --template="log.yaml" --destination="/etc/matrix-$app/log.yaml" ynh_add_config --template=sliding_proxy.conf --destination=/etc/matrix-$app/sliding_proxy.conf diff --git a/scripts/upgrade b/scripts/upgrade index b9ecfd1..149f656 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -289,6 +289,9 @@ fi #================================================= ynh_script_progression --message="Updating synapse config..." --weight=2 +# Force enable it because some client like Element X don't support CAS and so require to have password authentication enabled +password_enabled=true + ynh_add_jinja_config --template="homeserver.yaml" --destination="/etc/matrix-$app/homeserver.yaml" ynh_add_config --template="log.yaml" --destination="/etc/matrix-$app/log.yaml" ynh_add_config --template=sliding_proxy.conf --destination=/etc/matrix-$app/sliding_proxy.conf