feat: update .env.example with refined defaults for services

Revise `.env.example` file to include updated configurations for database, Redis, S3 storage, and mail services. Add missing variables for enhanced security and better local environment setup.
This commit is contained in:
Mathis HERRIOT
2026-01-14 13:50:43 +01:00
parent 9e37272bff
commit 8ffeaeba05

View File

@@ -8,32 +8,37 @@ BACKEND_PORT=3001
FRONTEND_PORT=3000
# Database (PostgreSQL)
POSTGRES_HOST=localhost
POSTGRES_HOST=db
POSTGRES_PORT=5432
POSTGRES_DB=memegoat
POSTGRES_DB=app
POSTGRES_USER=app
POSTGRES_PASSWORD=app
# Storage (S3/MinIO) - À configurer lors de l'implémentation
# S3_ENDPOINT=localhost
# S3_PORT=9000
# S3_ACCESS_KEY=
# S3_SECRET_KEY=
# S3_BUCKET=memegoat
# Redis
REDIS_HOST=redis
REDIS_PORT=6379
# Security (PGP & Auth) - À configurer lors de l'implémentation
# PGP_PASSPHRASE=
JWT_SECRET=super-secret-key-change-me-in-production
ENCRYPTION_KEY=another-super-secret-key-32-chars
# Storage (S3/MinIO)
S3_ENDPOINT=s3
S3_PORT=9000
S3_ACCESS_KEY=minioadmin
S3_SECRET_KEY=minioadmin
S3_BUCKET_NAME=memegoat
# Security
JWT_SECRET=super-secret-jwt-key-change-me-in-prod
ENCRYPTION_KEY=01234567890123456789012345678901
PGP_ENCRYPTION_KEY=super-secret-pgp-key
SESSION_PASSWORD=super-secret-session-password-32-chars
# Mail
MAIL_HOST=localhost
MAIL_HOST=mail
MAIL_PORT=1025
MAIL_SECURE=false
MAIL_USER=user
MAIL_PASS=password
MAIL_FROM=noreply@memegoat.fr
DOMAIN_NAME=memegoat.fr
MAIL_USER=
MAIL_PASS=
MAIL_FROM=noreply@memegoat.local
DOMAIN_NAME=localhost
# Media Limits (in KB)
MAX_IMAGE_SIZE_KB=512