1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/owncloud_ynh.git synced 2024-09-03 19:56:25 +02:00

[fix] Protect everything but remote and well-known paths

This commit is contained in:
Jérôme Lebleu 2016-05-12 20:04:47 +02:00
parent c02d6c39dd
commit 077590862a
2 changed files with 4 additions and 3 deletions

View file

@ -150,7 +150,8 @@ sudo chmod 640 "${DESTDIR}/config/config.php"
sudo chmod 755 /home/yunohost.app
# Set SSOwat rules
ynh_app_setting_set $app unprotected_uris "/"
ynh_app_setting_set "$app" unprotected_uris "/remote.php"
ynh_app_setting_set "$app" skipped_uris "/.well-known"
# Reload services
sudo service php5-fpm restart || true

View file

@ -136,8 +136,8 @@ sudo chmod 640 "${DESTDIR}/config/config.php"
sudo chmod 755 /home/yunohost.app
# Set SSOwat rules
ynh_app_setting_set $app unprotected_uris "/"
ynh_app_setting_delete $app skipped_uris
ynh_app_setting_set "$app" unprotected_uris "/remote.php"
ynh_app_setting_set "$app" skipped_uris "/.well-known"
# Reload services
sudo service php5-fpm restart || true