-
-
Save johnchidgey/cc81ba19e06ce1e432b33f94d73cbd03 to your computer and use it in GitHub Desktop.
PixelFed .env Setup: Postgresql DB, Mailgun for EMail, ActivityPub enabled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP_NAME="PixelFed" | |
APP_ENV=production | |
APP_KEY=base64:alfkajsdflajsflkasjdlfajsdlfjasdsflasdjkf | |
APP_DEBUG=true | |
APP_URL=https://yourdomain.com | |
ADMIN_DOMAIN="yourdomain.com" | |
APP_DOMAIN="yourdomain.com" | |
LOG_CHANNEL=stack | |
DB_CONNECTION=pgsql | |
DB_HOST=127.0.0.1 | |
DB_PORT=5432 | |
DB_DATABASE=pixelfed_prod | |
DB_USERNAME=pixelfed | |
DB_PASSWORD="kasdhfaklsdfhaklsdjfhalksdf" | |
BROADCAST_DRIVER=log | |
CACHE_DRIVER=redis | |
SESSION_DRIVER=redis | |
SESSION_LIFETIME=120 | |
QUEUE_DRIVER=redis | |
REDIS_HOST=127.0.0.1 | |
REDIS_PASSWORD=null | |
REDIS_PORT=6379 | |
MAIL_DRIVER=smtp | |
MAIL_HOST=smtp.mailgun.org | |
MAIL_PORT=2525 | |
MAIL_USERNAME=postmaster@mg.yourdomain.com | |
MAIL_PASSWORD=aksjdfhaklsjdfhaklsjdhfklasjdhfklasd | |
MAIL_ENCRYPTION=null | |
MAILGUN_DOMAIN=mg.yourdomain.com | |
MAILGUN_SECRET=key-askldfhajklsdhfklajsdhfklajsdhf | |
MAIL_FROM_ADDRESS="admin@yourdomain.com" | |
MAIL_FROM_NAME="Pixelfed Adminstrator" | |
SESSION_DOMAIN="${APP_DOMAIN}" | |
SESSION_SECURE_COOKIE=true | |
API_BASE="/api/1/" | |
API_SEARCH="/api/search" | |
OPEN_REGISTRATION=false | |
RECAPTCHA_ENABLED=false | |
ENFORCE_EMAIL_VERIFICATION=true | |
MAX_PHOTO_SIZE=15000 | |
MAX_CAPTION_LENGTH=150 | |
MAX_ALBUM_LENGTH=4 | |
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}" | |
ACTIVITYPUB_INBOX=true | |
ACTIVITYPUB_SHAREDINBOX=true | |
HORIZON_DARKMODE=true | |
# Set these both "true" to enable federation. | |
# You might need to also run: | |
# php artisan cache:clear | |
# php artisan optimize:clear | |
# php artisan optimize | |
ACTIVITY_PUB=true | |
REMOTE_FOLLOW=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment