From 04536836297692b6f14984a8fe261518a5d5b856 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 5 Nov 2020 21:54:33 +0100 Subject: [PATCH] Fix --- conf/nginx.conf | 2 ++ scripts/install | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 11cb4b2..17ed947 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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; } \ No newline at end of file diff --git a/scripts/install b/scripts/install index f961379..040e8f4 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #=================================================