# Auth Service - Service-Specific Environment Variables # Service-specific Environment Variables - Auth Service only # Copy this file to .env.local and fill in your values # # Note: Shared configs (JWT_SECRET, REDIS_HOST for Docker) are in deployments/local/.env.local # ============================================================================= # DATABASE - Service-specific Neon database # ============================================================================= # Get connection string from Neon Console: https://console.neon.tech # Create a separate database for auth-service (e.g., goodgo_auth_dev) DATABASE_URL=postgresql://user:password@ep-xxx.region.neon.tech/goodgo_auth_dev?sslmode=require&pgbouncer=true # ============================================================================= # SERVICE CONFIGURATION # ============================================================================= PORT=5001 SERVICE_NAME=auth-service API_VERSION=v1 # ============================================================================= # REDIS OVERRIDE - For native development (Redis in Docker) # ============================================================================= # When running service natively (not in Docker), Redis is in Docker container # so we need to use localhost instead of 'redis' hostname REDIS_HOST=localhost # REDIS_PORT and REDIS_PASSWORD will be inherited from shared .env.local # ============================================================================= # MONITORING (Optional - Override if needed) # ============================================================================= PROMETHEUS_PORT=9090 # ============================================================================= # EXTERNAL SERVICES (Optional) # ============================================================================= EMAIL_SERVICE_URL=http://notification-service:5003 # ============================================================================= # NOTES # ============================================================================= # 1. This file contains service-specific configs only # 2. Shared configs are loaded from: deployments/local/.env.local # - JWT_SECRET, JWT_REFRESH_SECRET (must be same across services) # - REDIS_HOST=redis (for Docker), REDIS_PORT, REDIS_PASSWORD # - NODE_ENV, LOG_LEVEL, CORS_ORIGIN # 3. DATABASE_URL should point to auth-service's own database # 4. REDIS_HOST=localhost overrides the shared 'redis' for native dev # 5. When running in Docker, remove REDIS_HOST override (use shared config)