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.
41 lines
1.7 KiB
Plaintext
41 lines
1.7 KiB
Plaintext
# ============================================================================
|
|
# K-Photos Configuration
|
|
# ============================================================================
|
|
# Copy this file to .env and adjust values for your environment.
|
|
|
|
# ============================================================================
|
|
# Server
|
|
# ============================================================================
|
|
HOST=0.0.0.0
|
|
PORT=8000
|
|
|
|
# ============================================================================
|
|
# Database
|
|
# ============================================================================
|
|
DATABASE_URL=postgres://kphotos:kphotos@localhost:5432/kphotos
|
|
|
|
# ============================================================================
|
|
# JWT
|
|
# ============================================================================
|
|
JWT_SECRET=change-me-in-production-at-least-32-characters
|
|
|
|
# ============================================================================
|
|
# NATS
|
|
# ============================================================================
|
|
NATS_URL=nats://localhost:4222
|
|
|
|
# ============================================================================
|
|
# CORS
|
|
# ============================================================================
|
|
CORS_ALLOWED_ORIGINS=http://localhost:8000,http://localhost:5173
|
|
|
|
# ============================================================================
|
|
# Storage
|
|
# ============================================================================
|
|
STORAGE_PATH=./data/media
|
|
|
|
# ============================================================================
|
|
# Logging
|
|
# ============================================================================
|
|
RUST_LOG=info
|