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:
parent
92cbcf0584
commit
d55d168241
1 changed files with 2 additions and 2 deletions
|
@ -25,10 +25,10 @@ sudo yunohost app addaccess $app -u $admin
|
||||||
# Allow only allowed users to access admin panel
|
# Allow only allowed users to access admin panel
|
||||||
if [ "$is_cesium_public" = "Yes" ]; then
|
if [ "$is_cesium_public" = "Yes" ]; then
|
||||||
# Cesium is public, do not protect it
|
# 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
|
else
|
||||||
# Cesium is not public, protect it
|
# 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
|
fi
|
||||||
|
|
||||||
# Duniter is public app, with only some parts restricted in nginx.conf
|
# Duniter is public app, with only some parts restricted in nginx.conf
|
||||||
|
|
Loading…
Reference in a new issue