1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/laverna_ynh.git synced 2024-09-03 19:36:06 +02:00
This commit is contained in:
ericgaspar 2020-11-05 21:54:33 +01:00
parent ca482b971f
commit 0453683629
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 15 additions and 0 deletions

View file

@ -9,6 +9,8 @@ location __PATH__/ {
rewrite ^ https://$server_name$request_uri? permanent;
}
index index.html;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}

View file

@ -73,6 +73,19 @@ ynh_add_nginx_config
# Set permissions to app files
chown -R root: $final_path
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=1
# Make app public if necessary or protect it
if [ $is_public -eq 1 ]
then
# Everyone can access the app.
# The "main" permission is automatically created before the install script.
ynh_permission_update --permission "main" --add "visitors"
fi
#=================================================
# RELOAD NGINX
#=================================================