For AI agents: the documentation index is at /docs/termbox/llms.txt. A Markdown version of this page is available at /docs/termbox/configuration.md or by requesting it with the Accept: text/markdown header.
Termbox Docs

Configuration

Termbox is configured through environment variables. When an environment variable changes, Termbox must be restarted for the change to take effect. The tables below list the available variables and their defaults.

Termbox server settings

Env varDescriptionDefaultValues / Examples
LICENSETermbox license
LOG_MIN_LEVELINFODEBUG, INFO, WARN, ERROR
LOG_FORMATUse json for structured loggingtexttext | json
HTTP_PORTHTTP server port3000
HTTP_MAX_BODYMax body size in bytes500000000
HTTP_BASE_URLBase url where termbox will be hosted (useful for outgoing links)
CACHE_CANONICAL_SIZESize (in items) of the canonical resource cache200000
FHIR_TOTAL_BEHAVIORControls whether FHIR responses include calculated totals by defaultnonenone | calculate
FHIR_MULTI_INVOKE_BATCH_SIZENumber of patterns processed per database batch in $x-multi-invoke operations6000
SNOMEDCT_DEFAULT_EDITIONDefault edition of SNOMED900000000000207008 (international)83821000000107: UK Edition

Database settings

Env varDescriptionDefaultValues / Examples
PG_PORTPostgres db port5432
PG_USERPostgres userpostgres
PG_PASSWORDPostgres password
PG_HOSTPostgres hostlocalhost
PG_DATABASEName of the main databasetermbox
PG_POOL_SIZEConnection pool max size20
PG_MAINTENANCE_WORK_MEMPostgres maintenance_work_mem used per session for load operations128MB
PG_WORK_MEMPostgres work_mem used per session for load operations128MB
PG_MAX_LIFETIMEMax lifetime of a pooled connection, in ms3300000 (55min)

Databricks settings

See Running Termbox on Managed PostgreSQL for setup instructions.

Env varDescriptionDefaultValues / Examples
PG_DATABRICKS_HOSTDatabricks workspace URL
PG_DATABRICKS_PROJECTLakebase project ID
PG_DATABRICKS_BRANCHLakebase branch ID
PG_DATABRICKS_ENDPOINTLakebase endpoint ID
PG_DATABRICKS_CLIENT_IDDatabricks service principal client ID
PG_DATABRICKS_CLIENT_SECRETDatabricks service principal client secret

Feature toggles

Env varDescriptionDefaultValues / Examples
CACHE_CANONICAL_ENABLEDWhether caching of canonical resources is enabledtruetrue | false
FUZZY_SEARCH_ENABLEDEnables typo-tolerant full text search for ValueSet/$expand filters; set to false for prefix-only searchtruetrue | false
READONLY_MODEEnables read-only mode: disables Admin API, UI ingest/delete routes, and FHIR write endpointsfalsetrue | false
UI_ENABLEDEnables the browser UI under /uitruetrue | false
ADMIN_API_ENABLEDEnables the Admin API under /admintruetrue | false
FHIR_API_ENABLEDEnables all FHIR API routes under /fhirtruetrue | false
FHIR_API_R4_ENABLEDEnables FHIR R4 API routes under /fhir/r4truetrue | false
FHIR_API_R4B_ENABLEDEnables FHIR R4b API routes under /fhir/r4btruetrue | false
FHIR_API_R5_ENABLEDEnables FHIR R5 API routes under /fhir/r5truetrue | false
FHIR_API_R6_ENABLEDEnables FHIR R6 API routes under /fhir/r6truetrue | false

Last updated: