Configuration & Settings Reference
Generated from src/data/generated/env.json and settings.json.
Environment Variables
Section titled “Environment Variables”| Variable | Default / Example | Required | Secret | Purpose |
|---|---|---|---|---|
DATABASE_URL |
<set-in-env> |
Yes | Yes | Database (PostgreSQL 16+) |
PORT |
3000 |
Yes | No | App Server |
APP_URL |
http://localhost:3000 |
Yes | No | Configuration variable APP_URL |
SESSION_SECRET |
<set-in-env> |
Yes | Yes | Configuration variable SESSION_SECRET |
CSRF_SECRET |
<set-in-env> |
Yes | Yes | Configuration variable CSRF_SECRET |
TOKEN_ENCRYPTION_KEY |
<set-in-env> |
Yes | Yes | Configuration variable TOKEN_ENCRYPTION_KEY |
S3_ENDPOINT |
http://127.0.0.1:9000 |
Yes | No | MinIO / S3-compatible Attachment Storage |
MINIO_PUBLIC_URL |
http://localhost:9000 |
Yes | No | Browser-facing MinIO URL used to sign presigned upload/download URLs. Keep http://localhost:9000 for local dev; use https://files.<domain> behind a dedicated reverse-proxy host in production. |
S3_REGION |
us-east-1 |
Yes | No | Configuration variable S3_REGION |
S3_ACCESS_KEY |
minioadmin |
Yes | No | Configuration variable S3_ACCESS_KEY |
S3_SECRET_KEY |
<set-in-env> |
Yes | Yes | Configuration variable S3_SECRET_KEY |
S3_BUCKET |
patchwork |
Yes | No | Configuration variable S3_BUCKET |
MAX_ATTACHMENT_BYTES |
10485760 |
Yes | No | Configuration variable MAX_ATTACHMENT_BYTES |
GITHUB_TOKEN |
(empty) |
No | Yes | Optional GitHub / GitLab API Tokens for higher rate limits on link fetching |
GITLAB_TOKEN |
(empty) |
No | Yes | Configuration variable GITLAB_TOKEN |
Runtime System Settings (System Configuration)
Section titled “Runtime System Settings (System Configuration)”Admins configure these settings in System Configuration (/dashboard/system). Values are validated by Zod schemas and persisted in the system_settings table.
Security & Sessions (security)
Section titled “Security & Sessions (security)”| Setting | Type | Allowed Range / Values | Default |
|---|---|---|---|
passwordMinLength |
integer |
6 .. 128 | 8 |
passwordRequireMixedCase |
boolean |
— | false |
passwordRequireDigit |
boolean |
— | false |
passwordRequireSymbol |
boolean |
— | false |
sessionLifetimeMs |
integer |
>= 60000 | 7 * 24 * 60 * 60 * 1000 |
sessionIdleTimeoutMs |
string |
0 (disabled) or 60000 .. 2592000000 | 0 |
rateLimitMaxFailures |
integer |
1 .. 100 | 5 |
rateLimitWindowMs |
integer |
1000 .. 86400000 | 15 * 60 * 1000 |
Storage & Files (storage)
Section titled “Storage & Files (storage)”| Setting | Type | Allowed Range / Values | Default |
|---|---|---|---|
maxAttachmentBytes |
integer |
1024 .. 104857600 | 5 * 1024 * 1024 |
allowedMimeTypes |
array |
— | [ "text/plain", "text/markdown", "text/x-markdown", "text/csv", "application/json", "application/pdf", "image/png", "image/jpeg", "image/webp", "image/gif", ] |
allowedExtensions |
array |
— | [ ".txt", ".md", ".markdown", ".csv", ".json", ".pdf", ".png", ".jpg", ".jpeg", ".webp", ".gif", ] |
Integrations (integrations)
Section titled “Integrations (integrations)”| Setting | Type | Allowed Range / Values | Default |
|---|---|---|---|
allowedHosts |
array |
— | ["github.com", "gitlab.com"] |
githubTokenCiphertext |
string | null |
— | null |
githubTokenIv |
string | null |
— | null |
githubTokenAuthTag |
string | null |
— | null |
gitlabTokenCiphertext |
string | null |
— | null |
gitlabTokenIv |
string | null |
— | null |
gitlabTokenAuthTag |
string | null |
— | null |
cacheDurationSec |
integer |
0 .. 86400 | 300 |
Appearance & Defaults (appearance)
Section titled “Appearance & Defaults (appearance)”| Setting | Type | Allowed Range / Values | Default |
|---|---|---|---|
defaultTheme |
enum ["light", "dark", "system"] |
[“light”, “dark”, “system”] | "system" |
dateTimeFormat |
enum [ "YYYY-MM-DD HH:mm", "MM/DD/YYYY hh:mm A", "DD/MM/YYYY HH:mm", ] |
[ “YYYY-MM-DD HH:mm”, “MM/DD/YYYY hh:mm A”, “DD/MM/YYYY HH:mm”, ] | "YYYY-MM-DD HH:mm" |
priorities |
array |
— | [ \{ key: "urgent", label: "Urgent", color: "#EF4444" \}, \{ key: "high", label: "High", color: "#F97316" \}, \{ key: "medium", label: "Medium", color: "#EAB308" \}, \{ key: "low", label: "Low", color: "#3B82F6" \}, \{ key: "none", label: "None", color: "#64748B" \}, ] |
labels |
array |
— | [ \{ name: "bug", color: "#EF4444" \}, \{ name: "feature", color: "#3B82F6" \}, \{ name: "documentation", color: "#10B981" \}, \{ name: "frontend", color: "#8B5CF6" \}, \{ name: "backend", color: "#F59E0B" \}, ] |
defaultColumns |
array |
— | [ \{ name: "Backlog", wipLimit: null, color: "#434B56" \}, \{ name: "In Progress", wipLimit: 5, color: "#C84317" \}, \{ name: "Review", wipLimit: 3, color: "#C2410C" \}, \{ name: "Done", wipLimit: null, color: "#15803D" \}, ] |