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

[fix] Force enable password authentication on matrixv2

This commit is contained in:
Josué Tille 2024-05-18 00:11:05 +02:00
parent ecb452f87d
commit 5cda6287a6
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
4 changed files with 14 additions and 0 deletions

View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -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