Self-hosting
Environment reference
Reference for the engine configuration surface in the checked-in .env example.
Source of truth
server/engine/.env.exampleCore app settings
| Field | Type | Required | Description |
|---|---|---|---|
APP_URL | string | Yes | Base URL for the engine, such as http://localhost:8080. |
APP_PORT | string | Yes | Port the Sankofa engine listens on. |
LOG_LEVEL | string | No | Application log level. |
CORS_ALLOWED_ORIGINS | string | No | Allowed frontend origins for browser access. |
Database and analytics settings
| Field | Type | Required | Description |
|---|---|---|---|
SQLITE_FILE | string | No | Path to the SQLite metadata database. |
CLICKHOUSE_ADDR | string | No | ClickHouse host and native port. |
CLICKHOUSE_DB | string | No | ClickHouse database name. |
CLICKHOUSE_USER | string | No | ClickHouse username. |
CLICKHOUSE_PASSWORD | string | No | ClickHouse password. |
Bootstrap and security
| Field | Type | Required | Description |
|---|---|---|---|
API_SECRET | string | No | JWT and session secret used by the API layer. |
ADMIN_EMAIL | string | No | Initial admin email for bootstrapping the installation. |
ADMIN_PASSWORD | string | No | Initial admin password. |
ADMIN_ORG_NAME | string | No | Initial organization name. |
ADMIN_PROJECT_NAME | string | No | Initial project name. |
GEOIP_DB_PATH | string | No | Path to the GeoLite2 City database used for IP resolution. |
Storage and outbound services
| Field | Type | Required | Description |
|---|---|---|---|
B2_PUBLIC_ENDPOINT | string | No | Public storage endpoint value in the checked-in example. |
B2_PUBLIC_BUCKET_NAME | string | No | Public bucket name. |
B2_PUBLIC_KEY_ID | string | No | Public bucket key identifier. |
B2_PUBLIC_APP_KEY | string | No | Public bucket application key. |
RESEND_API_KEY | string | No | Resend API key for email delivery. |
MAILERSEND_API_KEY | string | No | Mailersend API key for email delivery. |
EMAIL_FROM_ADDRESS | string | No | Default outbound email address. |
EMAIL_FROM_NAME | string | No | Default outbound email name. |
FRONTEND_URL | string | No | Primary frontend URL used by the engine. |