Configuration Reference
Every config key in the backend, auto-generated from source. Each key can be overridden via environment variable — the system checks for ENV_VAR_NODEENV first (e.g., DATABASE_URL_TEST when NODE_ENV=test), then ENV_VAR, then falls back to the default.
database
Source: config/database.ts
| Key | Environment Variable | Default |
|---|---|---|
connectionString | DATABASE_URL | "x" |
autoMigrate | DATABASE_AUTO_MIGRATE | true |
logger
Source: config/logger.ts
| Key | Environment Variable | Default |
|---|---|---|
level | LOG_LEVEL | LogLevel.info |
includeTimestamps | LOG_INCLUDE_TIMESTAMPS | true |
colorize | LOG_COLORIZE | true |
process
Source: config/process.ts
| Key | Environment Variable | Default |
|---|---|---|
name | PROCESS_NAME | "server" |
shutdownTimeout | PROCESS_SHUTDOWN_TIMEOUT | 1000 * 30, |
redis
Source: config/redis.ts
| Key | Environment Variable | Default |
|---|---|---|
connectionString | REDIS_URL | "redis:://localhost:6379/0", |
session
Source: config/session.ts
| Key | Environment Variable | Default |
|---|---|---|
ttl | SESSION_TTL | 1000 * 60 * 60 * 24 |
cookieName | SESSION_COOKIE_NAME | "__session" |
tasks
Source: config/tasks.ts
| Key | Environment Variable | Default |
|---|---|---|
enabled | TASKS_ENABLED | true |
timeout | TASK_TIMEOUT | 5000 |
taskProcessors | TASK_PROCESSORS | 1 |
web
Source: config/server/web.ts
| Key | Environment Variable | Default |
|---|---|---|
enabled | WEB_SERVER_ENABLED | true |
applicationUrl | APPLICATION_URL | `http://${host}:${port}`, |
apiRoute | WEB_SERVER_API_ROUTE | "/api" |
allowedOrigins | WEB_SERVER_ALLOWED_ORIGINS | "*" |
allowedMethods | WEB_SERVER_ALLOWED_METHODS | "HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS", |
allowedHeaders | WEB_SERVER_ALLOWED_HEADERS | "Content-Type", |
staticFilesEnabled | WEB_SERVER_STATIC_ENABLED | true |
staticFilesDirectory | WEB_SERVER_STATIC_DIRECTORY | "assets", |
staticFilesRoute | WEB_SERVER_STATIC_ROUTE | "/" |