1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

[fix] #54 Missing protection of URL /modules

This commit is contained in:
cgeek 2017-06-14 16:32:43 +02:00
parent 92cbcf0584
commit d55d168241

View file

@ -25,10 +25,10 @@ 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"
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","/cesium"
ynh_app_setting_set "$app" protected_uris "/webui","/webmin","/modules","/cesium"
fi
# Duniter is public app, with only some parts restricted in nginx.conf