Overview
Zeus server configuration is managed through environment variables. This allows flexible deployment across different environments.Environment Variables
Required
| Variable | Description | Example |
|---|---|---|
DATABASE_URL | PostgreSQL connection string | postgres://localhost/zeus |
Optional
| Variable | Description | Default |
|---|---|---|
PORT | Server port | 3000 |
RUST_LOG | Log level | info |
JWT_SECRET | JWT signing key | Random generated |
Configuration File
Create.env in the server directory:
Docker Compose
Full configuration indocker-compose.yml:
Environments
Development
Staging
Production
Logging Levels
| Level | Use Case |
|---|---|
error | Errors only |
warn | Warnings and errors |
info | General information (default) |
debug | Detailed debugging |
trace | Very verbose |
Security Considerations
- Never commit
.envfiles - Add to.gitignore - Use strong JWT secrets - At least 32 characters
- Rotate secrets regularly - Especially in production
- Use TLS - Always in production
- Limit database permissions - Use dedicated user

