1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lychee_ynh.git synced 2024-09-03 19:36:36 +02:00
This commit is contained in:
ericgaspar 2020-12-27 18:41:01 +01:00
parent 9691bbbdba
commit b5d1fbbba2
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 6 additions and 10 deletions

View file

@ -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/"

View file

@ -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;
}

View file

@ -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