mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
Fix
This commit is contained in:
parent
9546f4c881
commit
56b5221c73
3 changed files with 41 additions and 16 deletions
|
@ -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=
|
||||
|
|
|
@ -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/"
|
||||
|
||||
|
|
Loading…
Reference in a new issue