From b29f4e4465d9baba9d7fb2f68bcfa13ebf354419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Moreau?= Date: Wed, 14 Jun 2017 16:11:49 +0200 Subject: [PATCH] Protect some URLs --- scripts/functions.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 7290f22..5de0e15 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -22,14 +22,8 @@ CONFIG_SSOWAT () { # Add admin to the allowed users sudo yunohost app addaccess $app -u $admin -# Allow only allowed users to access admin panel -if [ "$is_cesium_public" = "Yes" ]; then - # Cesium is public, do not protect it - ynh_app_setting_set "$app" protected_uris "/webui","/webmin","/modules" -else - # Cesium is not public, protect it - ynh_app_setting_set "$app" protected_uris "/webui","/webmin","/modules","/cesium" -fi +# Protect senstive sub-routes +ynh_app_setting_set "$app" protected_uris "/webui","/webmin","/modules" # Duniter is public app, with only some parts restricted in nginx.conf ynh_app_setting_set "$app" unprotected_uris "/"