diff --git a/conf/.env.example b/conf/.env.example index 7b8e2a8..57d4ef9 100644 --- a/conf/.env.example +++ b/conf/.env.example @@ -32,8 +32,8 @@ DB_LOG_SQL=false TIMEZONE=UTC # folders in which the files will be stored -#LYCHEE_DIST="/var/www/__APP__/public/dist/" -#LYCHEE_UPLOADS="/var/www/__APP__/public/uploads/" +LYCHEE_DIST="/var/www/__APP__/public/dist/" +LYCHEE_UPLOADS="/home/yunohost.__APP__/uploads/" # url to access those files # LYCHEE_DIST_URL="dist/" diff --git a/conf/nginx.conf b/conf/nginx.conf index 49eb90b..eb96731 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -33,7 +33,3 @@ location ^~ __PATH__/ { # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } - -location @lychee { - rewrite __PATH__/(.*)$ __PATH__/index.php?/$1 last; -} diff --git a/scripts/install b/scripts/install index 5113964..761f965 100755 --- a/scripts/install +++ b/scripts/install @@ -141,8 +141,8 @@ ynh_store_file_checksum "$final_path/.env" # CREATE DIRECTORIES #================================================= -#mkdir -p /home/yunohost.${app}/uploads -#mkdir -p /home/yunohost.${app}/uploads/{big,medium,small,thumb,import} +mkdir -p /home/yunohost.${app}/uploads +mkdir -p /home/yunohost.${app}/uploads/{big,medium,small,thumb,import,raw} #================================================= # SECURE FILES AND DIRECTORIES @@ -150,8 +150,8 @@ ynh_store_file_checksum "$final_path/.env" # Set permissions to app files chown -R $app: $final_path -#chown -R $app: /home/yunohost.${app} -#chmod -R 750 /home/yunohost.${app} +chown -R $app: /home/yunohost.${app} +chmod -R 750 /home/yunohost.${app} #================================================= # SETUP SSOWAT