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:
Éric Gaspar 2023-03-08 19:03:14 +01:00
parent 9546f4c881
commit 56b5221c73
3 changed files with 41 additions and 16 deletions

View file

@ -28,23 +28,47 @@ DB_USERNAME=__DB_USER__
DB_PASSWORD=__DB_PWD__
DB_LOG_SQL=false
# List foreign keys in diagnostic page
DB_LIST_FOREIGN_KEYS=true
# Application timezone. If not specified, the server's default timezone is used.
# Requires a named timezone identifier.
# See https://www.php.net/manual/en/timezones.php for the list of supported timezones.
# Don't use a timezone offset (like +01:00) or a timezone abbreviation (like CEST)
TIMEZONE=__TIMEZONE__
# Visibility of directories and (media) files in LYCHEE_UPLOADS
# Possible values are:
#
# - private: world group has neither read nor write access
# - public: world group has read access but no write access (the default)
# - world: world group has read and write access
#
# The default should suffice for most installations.
# For improved security, change this setting to "private".
# Some rare setups may require directories and files to be world writeable.
# In this case, use "world" here.
# USE WITH PRECAUTIONS: world writeable files and folders may be a SECURITY RISK.
LYCHEE_IMAGE_VISIBILITY=public
# folders in which the files will be stored
LYCHEE_DIST="__INSTALL_DIR__/public/dist/"
LYCHEE_UPLOADS="__DATA_DIR__/uploads/"
LYCHEE_DIST="__INSTALL_DIR__/public/dist/"
# LYCHEE_SYM="/var/www/html/Lychee-Laravel/public/sym/"
# url to access those files
# LYCHEE_DIST_URL="dist/"
# LYCHEE_UPLOADS_URL="uploads/"
# LYCHEE_DIST_URL="dist/"
# LYCHEE_SYM_URL="sym/"
# Support for token based authentication used by API requests. Enabled by default.
ENABLE_TOKEN_AUTH=false
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync
SECURITY_HEADER_HSTS_ENABLE=false
SESSION_SECURE_COOKIE=false
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
@ -56,13 +80,15 @@ MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=
MAIL_FROM_NAME=
MAIL_FROM_ADDRESS=
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
# The trusted proxies if Lychee is behind a reverse proxy
# Accepted values:
# - `null`: no proxy
# - `*`: any proxy
# - <ip address>[,<ip address>]: a comma-seperated list of IP addresses
TRUSTED_PROXIES=null
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
ENABLE_TOKEN_AUTH=false
# Comma-separated list of class names of diagnostics checks that should be skipped.
#SKIP_DIAGNOSTICS_CHECKS=

View file

@ -26,7 +26,7 @@ location ^~ __PATH__/ {
}
location __PATH__/uploads/ {
alias __DATA_DIR__/uploads/ ;
alias __DATA_DIR__/uploads/;
}
# Include SSOWAT user panel.

View file

@ -66,8 +66,7 @@ ynh_script_progression --message="Creating a data directory..." --weight=1
mkdir -p $data_dir/uploads
mkdir -p $data_dir/uploads/{big,import,medium,raw,small,thumb}
chmod 775 "$data_dir/uploads/"
chmod 2775 "$data_dir/uploads/import/"
chmod 770 "$data_dir/uploads/"
chmod -R o-rwx "$data_dir/uploads/"
chown -R $app:$app "$data_dir/uploads/"