Environment Variables
Configuration options for LusterCMS.
Required Variables
| Variable | Description | Example |
|---|---|---|
DATABASE_URL | PostgreSQL connection | postgresql://user:pass@host:5432/db |
SECRET_KEY | JWT signing key | Random 32+ char string |
REDIS_URL | Redis connection | redis://localhost:6379 |
AI Configuration
| Variable | Description | Default |
|---|---|---|
OPENAI_API_KEY | OpenAI API key | - |
ANTHROPIC_API_KEY | Anthropic API key | - |
AI_PROVIDER | Default AI provider | openai |
AI_MODEL | Default model | gpt-4 |
Frontend
| Variable | Description | Default |
|---|---|---|
NEXT_PUBLIC_API_URL | Backend API URL | http://localhost:8000 |
NEXT_PUBLIC_WS_URL | WebSocket URL | ws://localhost:4000 |
Security
| Variable | Description | Default |
|---|---|---|
CORS_ORIGINS | Allowed origins | * |
JWT_EXPIRY | Token expiry (seconds) | 900 |
RATE_LIMIT | Requests per minute | 60 |
Storage
| Variable | Description | Default |
|---|---|---|
UPLOAD_DIR | Local upload directory | ./uploads |
S3_BUCKET | S3 bucket name | - |
S3_REGION | S3 region | - |
S3_ACCESS_KEY | S3 access key | - |
S3_SECRET_KEY | S3 secret key | - |
Email
| Variable | Description | Default |
|---|---|---|
SMTP_HOST | SMTP server | - |
SMTP_PORT | SMTP port | 587 |
SMTP_USER | SMTP username | - |
SMTP_PASSWORD | SMTP password | - |
FROM_EMAIL | Sender email | - |
Platform Admin
| Variable | Description | Default |
|---|---|---|
SUPERADMIN_EMAIL | Platform owner email | - |
SUPERADMIN_PASSWORD | Platform owner password | - |
Superadmin Account
Set these variables to create a superadmin account on startup. The superadmin has full access to all organizations, AI credits management, and platform settings.
Demo Mode
| Variable | Description | Default |
|---|---|---|
DEMO_MODE | Enable demo seeding | false |
DEMO_ADMIN_EMAIL | Demo user email | demo@lustercms.com |
DEMO_ADMIN_PASSWORD | Demo user password | Demo2025! |
LUSTE Token
| Variable | Description | Default |
|---|---|---|
LUSTE_TOKEN_ADDRESS | Token contract | - |
LUSTE_BRIDGE_ADDRESS | Bridge contract | - |
BASE_RPC_URL | Base RPC endpoint | - |
Example .env
# Database
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/lustercms
# Security
SECRET_KEY=your-very-long-random-secret-key-here
# Redis
REDIS_URL=redis://localhost:6379
# AI
OPENAI_API_KEY=sk-...
# Frontend
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_WS_URL=ws://localhost:4000
# Platform Superadmin (full access to everything)
SUPERADMIN_EMAIL=your@email.com
SUPERADMIN_PASSWORD=your-secure-password
# LUSTE Token (optional)
LUSTE_TOKEN_ADDRESS=0xF320d3e7A4841F4a3052316bf04dB5B84C5b25C2
LUSTE_BRIDGE_ADDRESS=0x0E2557e51385f053ee1B1Ce29bc394F0E28752f8