1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Update .env

This commit is contained in:
Éric Gaspar 2023-05-26 10:08:28 +02:00
parent 5cbd5d5df5
commit 9e6e551c84

178
conf/.env
View file

@ -1,145 +1,79 @@
## Crypto APP_NAME="__APP__"
APP_ENV="production"
APP_KEY=__APP_KEY__ APP_KEY=__APP_KEY__
APP_DEBUG="false"
## General Settings # Instance Configuration
APP_NAME=__APP__ OPEN_REGISTRATION="false"
APP_ENV=production ENFORCE_EMAIL_VERIFICATION="false"
APP_DEBUG=false PF_MAX_USERS="1000"
APP_URL=https://__DOMAIN__ OAUTH_ENABLED="true"
ADMIN_DOMAIN="__DOMAIN__"
# Media Configuration
PF_OPTIMIZE_IMAGES="true"
IMAGE_QUALITY="80"
MAX_PHOTO_SIZE="15000"
MAX_CAPTION_LENGTH="500"
MAX_ALBUM_LENGTH="4"
# Instance URL Configuration
APP_URL="https://__DOMAIN__
APP_DOMAIN="__DOMAIN__" APP_DOMAIN="__DOMAIN__"
ADMIN_DOMAIN="__DOMAIN__"
SESSION_DOMAIN="${APP_DOMAIN}" SESSION_DOMAIN="${APP_DOMAIN}"
TRUST_PROXIES="*"
OPEN_REGISTRATION=true # Database Configuration
ENFORCE_EMAIL_VERIFICATION=true DB_CONNECTION="pgsql"
PF_MAX_USERS=1000 DB_HOST="127.0.0.1"
OAUTH_ENABLED=true DB_PORT="5432"
DB_DATABASE="__DB_NAME__"
DB_USERNAME="__DB_USER__"
DB_PASSWORD="__DB_PWD__"
APP_TIMEZONE=UTC # Redis Configuration
APP_LOCALE=en REDIS_CLIENT="phpredis"
REDIS_SCHEME="tcp"
REDIS_HOST="127.0.0.1"
REDIS_PASSWORD="null"
REDIS_PORT="6379"
REDIS_DATABASE="__REDIS_DB__"
## Pixelfed Tweaks # Laravel Configuration
LIMIT_ACCOUNT_SIZE=true SESSION_DRIVER="database"
MAX_ACCOUNT_SIZE=1000000 CACHE_DRIVER="redis"
MAX_PHOTO_SIZE=15000 QUEUE_DRIVER="redis"
MAX_AVATAR_SIZE=2000 BROADCAST_DRIVER="log"
MAX_CAPTION_LENGTH=500 LOG_CHANNEL="stack"
MAX_BIO_LENGTH=125 HORIZON_PREFIX="horizon-"
MAX_NAME_LENGTH=30
MAX_ALBUM_LENGTH=4
IMAGE_QUALITY=80
PF_OPTIMIZE_IMAGES=true
PF_OPTIMIZE_VIDEOS=true
ADMIN_ENV_EDITOR=true
ACCOUNT_DELETION=true
ACCOUNT_DELETE_AFTER=false
MAX_LINKS_PER_POST=0
## Instance # ActivityPub Configuration
#INSTANCE_DESCRIPTION= ACTIVITY_PUB="true"
INSTANCE_PUBLIC_HASHTAGS=false AP_REMOTE_FOLLOW="true"
#INSTANCE_CONTACT_EMAIL= AP_INBOX="true"
INSTANCE_PUBLIC_LOCAL_TIMELINE=false AP_OUTBOX="true"
#BANNED_USERNAMES= AP_SHAREDINBOX="true"
STORIES_ENABLED=false
RESTRICTED_INSTANCE=false
## Mail # Experimental Configuration
EXP_EMC="true"
## Mail Configuration (Post-Installer)
MAIL_DRIVER=smtp MAIL_DRIVER=smtp
MAIL_HOST=localhost MAIL_HOST=localhost
MAIL_PORT=25 MAIL_PORT=25
MAIL_FROM_ADDRESS="pixelfed@__DOMAIN__"
MAIL_FROM_NAME="Pixelfed"
MAIL_USERNAME=null MAIL_USERNAME=null
MAIL_PASSWORD=null MAIL_PASSWORD=null
MAIL_ENCRYPTION=null MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="pixelfed@__DOMAIN__"
MAIL_FROM_NAME="Pixelfed"
## Databases (MySQL) ## S3 Configuration (Post-Installer)
#DB_CONNECTION=mysql
#DB_HOST=127.0.0.1
#DB_PORT=3306
#DB_DATABASE=pixelfed
#DB_USERNAME=pixelfed
#DB_PASSWORD=pixelfed
## Databases (Postgres)
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=__DB_NAME__
DB_USERNAME=__DB_USER__
DB_PASSWORD=__DB_PWD__
## Cache (Redis)
REDIS_CLIENT=phpredis
REDIS_SCHEME=tcp
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
REDIS_DATABASE=__REDIS_DB__
## EXPERIMENTS
EXP_LC=false
EXP_REC=false
EXP_LOOPS=false
## ActivityPub Federation
ACTIVITY_PUB=true
AP_REMOTE_FOLLOW=true
AP_INBOX=true
AP_SHAREDINBOX=true
AP_OUTBOX=true
ATOM_FEEDS=true
NODEINFO=true
WEBFINGER=true
## S3
FILESYSTEM_CLOUD=s3
PF_ENABLE_CLOUD=false PF_ENABLE_CLOUD=false
FILESYSTEM_CLOUD=s3
#AWS_ACCESS_KEY_ID= #AWS_ACCESS_KEY_ID=
#AWS_SECRET_ACCESS_KEY= #AWS_SECRET_ACCESS_KEY=
#AWS_DEFAULT_REGION= #AWS_DEFAULT_REGION=
#AWS_BUCKET= #AWS_BUCKET=<BucketName>
#AWS_URL= #AWS_URL=
#AWS_ENDPOINT= #AWS_ENDPOINT=
#AWS_USE_PATH_STYLE_ENDPOINT=false #AWS_USE_PATH_STYLE_ENDPOINT=false
## Horizon
HORIZON_DARKMODE=false
## COSTAR - Confirm Object Sentiment Transform and Reduce
PF_COSTAR_ENABLED=true
CS_BLOCKED_DOMAINS='gab.com,gab.ai,develop.gab.com'
CS_CW_DOMAINS='switter.at'
CS_UNLISTED_DOMAINS='example.org,example.net,example.com'
# Media
MEDIA_EXIF_DATABASE=false
## Logging
LOG_CHANNEL=stack
## Image
IMAGE_DRIVER=imagick
## Broadcasting
BROADCAST_DRIVER=log # log driver for local development
## Cache
CACHE_DRIVER=redis
## Purify
RESTRICT_HTML_TYPES=true
## Queue
QUEUE_DRIVER=redis
## Session
SESSION_DRIVER=redis
## Trusted Proxy
TRUST_PROXIES="*"
## Passport
#PASSPORT_PRIVATE_KEY=
#PASSPORT_PUBLIC_KEY=