mirror of https://github.com/pixelfed/pixelfed
Use environment variables only (no .env file) and separate horizon
parent
d327aeba2b
commit
cce25eb771
@ -1,59 +0,0 @@
|
|||||||
APP_NAME="${APP_NAME}"
|
|
||||||
APP_ENV=local
|
|
||||||
APP_KEY="${APP_KEY}"
|
|
||||||
APP_DEBUG=false
|
|
||||||
APP_URL=${APP_URL}
|
|
||||||
|
|
||||||
LOG_CHANNEL=stderr
|
|
||||||
|
|
||||||
DB_CONNECTION=mysql
|
|
||||||
DB_HOST=${DB_HOST}
|
|
||||||
DB_PORT=3306
|
|
||||||
DB_DATABASE="${DB_DATABASE}"
|
|
||||||
DB_USERNAME="${DB_USERNAME}"
|
|
||||||
DB_PASSWORD="${DB_PASSWORD}"
|
|
||||||
|
|
||||||
BROADCAST_DRIVER=log
|
|
||||||
CACHE_DRIVER=file
|
|
||||||
SESSION_DRIVER=file
|
|
||||||
SESSION_LIFETIME=120
|
|
||||||
QUEUE_DRIVER=redis
|
|
||||||
HORIZON_PREFIX=horizon-pixelfed
|
|
||||||
|
|
||||||
REDIS_HOST="${REDIS_HOST}"
|
|
||||||
REDIS_PASSWORD=null
|
|
||||||
REDIS_PORT=6379
|
|
||||||
|
|
||||||
MAIL_DRIVER=smtp
|
|
||||||
MAIL_HOST=${MAIL_HOST}
|
|
||||||
MAIL_PORT="${MAIL_PORT}"
|
|
||||||
MAIL_USERNAME="${MAIL_USERNAME}"
|
|
||||||
MAIL_PASSWORD="${MAIL_PASSWORD}"
|
|
||||||
MAIL_ENCRYPTION="${MAIL_ENCRYPTION}"
|
|
||||||
|
|
||||||
PUSHER_APP_ID=
|
|
||||||
PUSHER_APP_KEY=
|
|
||||||
PUSHER_APP_SECRET=
|
|
||||||
PUSHER_APP_CLUSTER=mt1
|
|
||||||
|
|
||||||
SESSION_DOMAIN="${SESSION_DOMAIN}"
|
|
||||||
SESSION_SECURE_COOKIE=true
|
|
||||||
API_BASE="/api/1/"
|
|
||||||
API_SEARCH="/api/search"
|
|
||||||
|
|
||||||
OPEN_REGISTRATION=${OPEN_REGISTRATION}
|
|
||||||
MAX_CAPTION_LENGTH=${MAX_CAPTION_LENGTH}
|
|
||||||
MAX_PHOTO_SIZE=${MAX_PHOTO_SIZE}
|
|
||||||
ENFORCE_EMAIL_VERIFICATION=${ENFORCE_EMAIL_VERIFICATION}
|
|
||||||
REMOTE_FOLLOW=${REMOTE_FOLLOW}
|
|
||||||
ACTIVITY_PUB=${ACTIVITY_PUB}
|
|
||||||
|
|
||||||
RECAPTCHA_ENABLED=${RECAPTCHA_ENABLED}
|
|
||||||
RECAPTCHA_PUBLIC_KEY=${RECAPTCHA_PUBLIC_KEY}
|
|
||||||
RECAPTCHA_PRIVATE_KEY=${RECAPTCHA_PRIVATE_KEY}
|
|
||||||
|
|
||||||
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
|
|
||||||
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
|
|
||||||
MIX_APP_URL="${APP_URL}"
|
|
||||||
MIX_API_BASE="${API_BASE}"
|
|
||||||
MIX_API_SEARCH="${API_SEARCH}"
|
|
||||||
@ -1,13 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o allexport
|
# Create the storage tree if needed and fix permissions
|
||||||
source .env
|
|
||||||
set +o allexport
|
|
||||||
|
|
||||||
cp -r storage.skel/* storage/
|
cp -r storage.skel/* storage/
|
||||||
chown -R www-data:www-data storage/
|
chown -R www-data:www-data storage/
|
||||||
php artisan migrate --force
|
|
||||||
php artisan storage:link
|
php artisan storage:link
|
||||||
|
|
||||||
|
# Migrate database if the app was upgraded
|
||||||
|
php artisan migrate --force
|
||||||
|
|
||||||
|
# Run a worker if it is set as embedded
|
||||||
|
if [ HORIZON_EMBED = true ]; then
|
||||||
php artisan horizon &
|
php artisan horizon &
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Finally run Apache
|
||||||
exec apache2-foreground
|
exec apache2-foreground
|
||||||
|
|||||||
Loading…
Reference in New Issue