TypeDock loads configuration from <root>/config.json (when present) and applies environment variable overrides on top. Environment variables always take precedence over config.json.
Core Runtime Variables
| Variable |
Default |
Description |
APP_ENV |
production |
Runtime environment (production or development). |
APP_DEBUG |
false |
Enable verbose debug details (true / 1). |
APP_URL |
"" |
Canonical public site URL (e.g. https://example.com). |
APP_BASE_PATH |
auto-detected |
Subdirectory mount path (e.g. /blog). Auto-detected under FastCGI. |
TYPEDOCK_HTTP_ADDR |
:8080 |
Standalone HTTP listen address (-http flag takes precedence). Also falls back to PORT. |
APP_KEY |
auto-generated |
256-bit app key (base64:...). Auto-persisted to storage/.secrets.json if omitted. |
SESSION_SECRET |
auto-generated |
256-bit session signing key. Auto-persisted to storage/.secrets.json if omitted. |
Directory Overrides
| Variable |
Default |
Description |
TYPEDOCK_DATA_DIR |
<root>/storage |
Runtime data directory (SQLite DB, sessions, cache, logs, backups). |
TYPEDOCK_PUBLIC_DIR |
<root>/public (or <root> in flat FastCGI) |
Public assets and uploads directory. |
TYPEDOCK_THEMES_DIR |
<root>/themes |
Themes directory. |
TYPEDOCK_PLUGINS_DIR |
<root>/plugins |
Drop-in JS plugins directory. |
Database Configuration
TypeDock defaults to zero-config embedded SQLite (WAL mode + busy timeout).
| Variable |
Default |
Description |
DB_DRIVER |
sqlite |
Database backend: sqlite, mysql, postgres, or libsql. |
DB_SQLITE_PATH |
<data_dir>/cms.db |
Path to SQLite database file. |
DB_HOST |
127.0.0.1 |
Database host (mysql / postgres). |
DB_PORT |
3306 |
Database port (3306 for MySQL, 5432 for PostgreSQL). |
DB_DATABASE |
"" |
Database name. |
DB_USERNAME |
"" |
Database user. |
DB_PASSWORD |
"" |
Database password. |
DB_URL |
"" |
Full connection URL (postgres://... or libsql://...). |
DB_AUTH_TOKEN |
"" |
Auth token for libSQL / Turso HTTP transport. |
Zero-Touch Headless Bootstrap (Docker / CI)
When both TYPEDOCK_ADMIN_EMAIL and TYPEDOCK_ADMIN_PASSWORD are set and the database has zero users, TypeDock completes installation automatically on startup:
| Variable |
Default |
Description |
TYPEDOCK_ADMIN_EMAIL |
(required for bootstrap) |
Initial administrator email address. |
TYPEDOCK_ADMIN_PASSWORD |
(required for bootstrap) |
Initial administrator password (minimum 8 characters). |
TYPEDOCK_ADMIN_NAME |
Admin |
Display name for the initial administrator. |
TYPEDOCK_SITE_NAME |
TypeDock |
Initial site title. |
TYPEDOCK_SITE_DESCRIPTION |
"" |
Initial site tagline/description. |
TYPEDOCK_SITE_LANGUAGE |
en |
Initial content locale (e.g. en, ja). |
TYPEDOCK_ADMIN_LOCALE |
follows TYPEDOCK_SITE_LANGUAGE (en or ja) |
Default admin panel language. |
TYPEDOCK_THEME |
default |
Initial active theme slug. |
TYPEDOCK_POSTS_SLUG |
posts |
URL slug for the posts archive. |
TYPEDOCK_POSTS_LABEL |
Posts |
Label for the posts archive. |
TYPEDOCK_SEED_DEMO |
false |
Set to true / 1 to create a welcome post, About page, and sample taxonomy. |
Once at least one user exists in the database, bootstrap variables are ignored so restarts are always idempotent.
Signed Binary Self-Update (Optional)
| Variable |
Default |
Description |
UPDATE_MANIFEST_URL |
"" |
URL to a signed release manifest JSON. |
UPDATE_PUBLIC_KEY |
"" |
Minisign public key (RW...) used to verify update payloads. |