mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
Protect some URLs
This commit is contained in:
parent
d9494b91de
commit
b29f4e4465
1 changed files with 2 additions and 8 deletions
|
@ -22,14 +22,8 @@ CONFIG_SSOWAT () {
|
||||||
# Add admin to the allowed users
|
# Add admin to the allowed users
|
||||||
sudo yunohost app addaccess $app -u $admin
|
sudo yunohost app addaccess $app -u $admin
|
||||||
|
|
||||||
# Allow only allowed users to access admin panel
|
# Protect senstive sub-routes
|
||||||
if [ "$is_cesium_public" = "Yes" ]; then
|
ynh_app_setting_set "$app" protected_uris "/webui","/webmin","/modules"
|
||||||
# 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
|
|
||||||
|
|
||||||
# Duniter is public app, with only some parts restricted in nginx.conf
|
# Duniter is public app, with only some parts restricted in nginx.conf
|
||||||
ynh_app_setting_set "$app" unprotected_uris "/"
|
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||||
|
|
Loading…
Add table
Reference in a new issue