fix: sync .env.example with actual config

Remove vars not read by code (DB_MAX/MIN_CONNECTIONS, STORAGE_BACKEND,
PRODUCTION, JWT_EXPIRY_HOURS). Add missing NATS_URL, RUST_LOG.
Fix PORT default 3000->8000, CORS origin to match.
This commit is contained in:
2026-05-31 22:28:36 +02:00
parent 168f2a6a27
commit d879fd6437

View File

@@ -7,36 +7,34 @@
# Server # Server
# ============================================================================ # ============================================================================
HOST=0.0.0.0 HOST=0.0.0.0
PORT=3000 PORT=8000
# ============================================================================ # ============================================================================
# Database # Database
# ============================================================================ # ============================================================================
DATABASE_URL=postgres://kphotos:kphotos@localhost:5432/kphotos DATABASE_URL=postgres://kphotos:kphotos@localhost:5432/kphotos
DB_MAX_CONNECTIONS=5
DB_MIN_CONNECTIONS=1
# ============================================================================ # ============================================================================
# JWT # JWT
# ============================================================================ # ============================================================================
JWT_SECRET=change-me-in-production-at-least-32-characters JWT_SECRET=change-me-in-production-at-least-32-characters
# Token lifetime in hours (default: 24) # ============================================================================
JWT_EXPIRY_HOURS=24 # NATS
# ============================================================================
NATS_URL=nats://localhost:4222
# ============================================================================ # ============================================================================
# CORS # CORS
# ============================================================================ # ============================================================================
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173 CORS_ALLOWED_ORIGINS=http://localhost:8000,http://localhost:5173
# ============================================================================ # ============================================================================
# Storage # Storage
# ============================================================================ # ============================================================================
STORAGE_BACKEND=local
STORAGE_PATH=./data/media STORAGE_PATH=./data/media
# ============================================================================ # ============================================================================
# Production Mode # Logging
# ============================================================================ # ============================================================================
PRODUCTION=false RUST_LOG=info