From d879fd643749aa95388083a74a1ba44b862c0def Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Sun, 31 May 2026 22:28:36 +0200 Subject: [PATCH] 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. --- .env.example | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.env.example b/.env.example index ae331a8..cd71724 100644 --- a/.env.example +++ b/.env.example @@ -7,36 +7,34 @@ # Server # ============================================================================ HOST=0.0.0.0 -PORT=3000 +PORT=8000 # ============================================================================ # Database # ============================================================================ DATABASE_URL=postgres://kphotos:kphotos@localhost:5432/kphotos -DB_MAX_CONNECTIONS=5 -DB_MIN_CONNECTIONS=1 - # ============================================================================ # JWT # ============================================================================ 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_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173 +CORS_ALLOWED_ORIGINS=http://localhost:8000,http://localhost:5173 # ============================================================================ # Storage # ============================================================================ -STORAGE_BACKEND=local STORAGE_PATH=./data/media # ============================================================================ -# Production Mode +# Logging # ============================================================================ -PRODUCTION=false +RUST_LOG=info