Environment Variables
Complete reference for all environment variables used by Fluxgate AI.
Production Security
Always change SECRET_KEY, DATABASE_URL passwords, and restrict CORS_ORIGINS before deploying to production. Never use default values in production!
All Variables
| Variable | Default | Description |
|---|---|---|
| DATABASE_URL | postgresql://acp:acp@timescaledb:5432/acp | PostgreSQL/TimescaleDB connection string |
| REDIS_URL | redis://redis:6379/0 | Redis connection URL for caching and sessions |
| KAFKA_BROKER | kafka:9092 | Kafka broker address for event bus |
| SECRET_KEY | change-me-in-production | Secret key for JWT tokens and encryption. MUST change in production! |
| API_PORT | 8000 | Port for the FastAPI server |
| GATEWAY_PORT | 8080 | Port for the Go gateway |
| DASHBOARD_PORT | 3000 | Port for the Next.js dashboard |
| OPENAI_API_KEY | (none) | OpenAI API key for GPT models |
| ANTHROPIC_API_KEY | (none) | Anthropic API key for Claude models |
| GOOGLE_API_KEY | (none) | Google AI API key for Gemini models |
| CELERY_BROKER_URL | redis://redis:6379/1 | Celery task broker (Redis) |
| CELERY_RESULT_BACKEND | redis://redis:6379/2 | Celery result storage |
| LOG_LEVEL | INFO | Logging level: DEBUG, INFO, WARNING, ERROR |
| CORS_ORIGINS | * | Allowed CORS origins. Restrict in production. |
| MAX_CONCURRENT_RUNS | 50 | Maximum concurrent agent runs |
| VECTOR_DIMENSIONS | 1536 | Embedding vector dimensions for pgvector |
| RATE_LIMIT_PER_MINUTE | 60 | Default API rate limit per key per minute |
| ENCRYPTION_KEY | (auto-generated) | Key for encrypting secrets vault |