# Chat Switchboard - Server Environment Variables # Copy this file to .env and fill in the values # Server settings PORT=8080 ENVIRONMENT=development DEBUG=true # Database settings (PostgreSQL) DB_HOST=localhost DB_PORT=5432 DB_USER=chat_switchboard DB_PASSWORD=your-secure-password-here DB_NAME=chat_switchboard DB_SSL_MODE=disable DB_MAX_CONNS=25 # JWT settings JWT_SECRET=your-super-secret-jwt-key-change-in-production JWT_EXPIRATION=24h JWT_ISSUER=chat-switchboard # CORS settings (comma-separated for multiple origins) CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8080 CORS_ALLOWED_METHODS=GET,POST,PUT,DELETE,OPTIONS,PATCH CORS_ALLOWED_HEADERS=Content-Type,Authorization,X-Requested-With,Accept,Origin # Rate limiting RATE_LIMIT_REQUESTS=100 RATE_LIMIT_WINDOW=1m # Logging LOG_LEVEL=info # Optional: Redis configuration (for WebSocket pub/sub and session cache) # REDIS_HOST=localhost # REDIS_PORT=6379 # REDIS_DB=0 # REDIS_PASSWORD= # Optional: External services # OPENAI_API_KEY= # ANTHROPIC_API_KEY= # GOOGLE_API_KEY=