Environment Variables
Required Variables
| Variable | Description | Example |
|---|---|---|
SUPABASE_URL | Supabase project URL | https://xxx.supabase.co |
SUPABASE_ANON_KEY | Supabase anonymous key | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... |
SUPABASE_SERVICE_ROLE_KEY | Supabase service role key | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... |
GOOGLE_API_KEY | Google API key for AI services | AIzaSy... |
Optional Variables
| Variable | Description | Default |
|---|---|---|
ENVIRONMENT | Environment (development/production) | development |
DEBUG | Debug mode | false |
TAVILY_API_KEY | Tavily search API key | - |
VISION_AGENT_API_KEY | Vision Agent API key | - |
MAX_FILE_SIZE | Maximum file upload size | 100MB |
RATE_LIMIT_PER_MINUTE | API rate limit | 100 |
Celery/Redis Configuration
| Variable | Description | Default |
|---|---|---|
USE_CELERY | Enable Celery for background tasks | false |
REDIS_URL | Redis connection URL | redis://localhost:6379/0 |
CELERY_BROKER_URL | Celery broker URL | redis://localhost:6379/0 |
CELERY_RESULT_BACKEND | Celery result backend | redis://localhost:6379/0 |
Configuration File
Create a.env file in the conformly-backend directory:
Production Configuration
For production deployments:- Set
ENVIRONMENT=production - Set
DEBUG=false - Use secure, environment-specific API keys
- Configure proper Redis connection pooling
- Set up database connection pooling
- Enable rate limiting
- Configure CORS properly
Next: API Endpoints
View available API endpoints