mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
[enh] scripts: add futur access management for admin on /duniter and public access on /duniter/api.
This commit is contained in:
parent
32d3690e90
commit
913d698e11
2 changed files with 14 additions and 2 deletions
|
@ -75,8 +75,14 @@ sudo $app webstart
|
||||||
# Add Duniter service to the YunoHost monitoring
|
# Add Duniter service to the YunoHost monitoring
|
||||||
sudo yunohost service add $app --log /home/admin/.config/$app/"$app"_default/"$app".log
|
sudo yunohost service add $app --log /home/admin/.config/$app/"$app"_default/"$app".log
|
||||||
|
|
||||||
|
# Add admin to the allowed users
|
||||||
|
#sudo yunohost app addaccess $app -u $admin
|
||||||
|
|
||||||
|
# Allow only allowed users to access admin panel
|
||||||
|
#ynh_app_setting_set "$app" protected_uris "/"
|
||||||
|
|
||||||
# SSOwat Configuration
|
# SSOwat Configuration
|
||||||
ynh_app_setting_set "$app" unprotected_uris "/"
|
ynh_app_setting_set "$app" unprotected_uris "/" # "api/"
|
||||||
|
|
||||||
# Configure Nginx
|
# Configure Nginx
|
||||||
nginx_conf="../conf/nginx.conf"
|
nginx_conf="../conf/nginx.conf"
|
||||||
|
|
|
@ -38,8 +38,14 @@ sudo $app webstart
|
||||||
# Remove trailing "/" for next command
|
# Remove trailing "/" for next command
|
||||||
path=${path%/}
|
path=${path%/}
|
||||||
|
|
||||||
|
# Add admin to the allowed users
|
||||||
|
#sudo yunohost app addaccess $app -u $admin
|
||||||
|
|
||||||
|
# Allow only allowed users to access admin panel
|
||||||
|
#ynh_app_setting_set "$app" protected_uris "/"
|
||||||
|
|
||||||
# SSOwat Configuration
|
# SSOwat Configuration
|
||||||
ynh_app_setting_set "$app" unprotected_uris "/"
|
ynh_app_setting_set "$app" unprotected_uris "/" # "api/"
|
||||||
|
|
||||||
# Upgrade Nginx configuration
|
# Upgrade Nginx configuration
|
||||||
nginx_conf="../conf/nginx.conf"
|
nginx_conf="../conf/nginx.conf"
|
||||||
|
|
Loading…
Add table
Reference in a new issue