Browse Source

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

pull/4/head
Jérôme Lebleu 10 years ago
parent
commit
077590862a
  1. 3
      scripts/install
  2. 4
      scripts/upgrade

3
scripts/install

@ -150,7 +150,8 @@ sudo chmod 640 "${DESTDIR}/config/config.php"
sudo chmod 755 /home/yunohost.app sudo chmod 755 /home/yunohost.app
# Set SSOwat rules # 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 # Reload services
sudo service php5-fpm restart || true sudo service php5-fpm restart || true

4
scripts/upgrade

@ -136,8 +136,8 @@ sudo chmod 640 "${DESTDIR}/config/config.php"
sudo chmod 755 /home/yunohost.app sudo chmod 755 /home/yunohost.app
# Set SSOwat rules # 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 # Reload services
sudo service php5-fpm restart || true sudo service php5-fpm restart || true

Loading…
Cancel
Save