From ad96fdd9e8aaa6fc02590a897469972a0b1c8c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Tue, 7 Jun 2016 12:28:31 +0200 Subject: [PATCH] [fix] Skip the /.well-known paths in SSOwat --- scripts/install | 2 ++ scripts/upgrade | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 1cf16ac..d92df73 100755 --- a/scripts/install +++ b/scripts/install @@ -157,6 +157,8 @@ ynh_app_setting_set "$app" mysqlpwd "$dbpass" # Set SSOwat rules ynh_app_setting_set "$app" unprotected_uris "/" +ynh_app_setting_set "$app" skipped_regex \ + "$(sed 's/[\.\-]/\%&/g' <<< $domain)/%.well%-known/.*" # Reload services sudo service php5-fpm restart || true diff --git a/scripts/upgrade b/scripts/upgrade index 54ea817..504d580 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -147,7 +147,8 @@ 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" skipped_regex \ + "$(sed 's/[\.\-]/\%&/g' <<< $domain)/%.well%-known/.*" # Reload services sudo service php5-fpm restart || true