aWhere Manual
Install and run a siteReference

Environment reference

The environment variables by topic: which are required, which nodes use them, what each means, and what it accepts.

The variables are grouped by topic, and each has one row. The Used by column names the nodes that read it. In each table the required variables come first. This page leaves out the settings that have a working default; the ones you use often are in Configure a node.

How to read the tables

A Yes variable must be set before the platform runs for real: without it the node refuses to start. In development the node only warns. When a variable is required on only some nodes, the Required column names them. The related checks are in Preflight check reference.

Platform

VariableRequiredUsed byMeaningAccepted value
PLATFORM_URLYescore-servicesThe platform's public address. Every installed app's URL and every logo URL is built from itAn absolute http(s) URL

Databases

VariableRequiredUsed byMeaningAccepted value
DATASTORE_URLYescore-services, authorization-server, item-services, file-services, logging-services, tile-services, realtime-services, background-servicesThe Datastore, which holds users, groups, Items, OAuth clients and installed appsA mongodb:// or mongodb+srv:// URL
CONTENT_STORE_URLYes, but on authorization-server it is not needed if FILE_STORE_URL is setcore-services, authorization-server, item-services, file-services, tile-services, tile-indexer, realtime-services, background-servicesThe Content store, which holds Records and files. With FILE_STORE_URL set, files go there insteadA mongodb:// or mongodb+srv:// URL; on tile-indexer it must be the URL of a replica set
SESSION_STORE_URLYesauthorization-serverThe Session store, which holds sessions, signing keys, password recovery data and two-factor secretsA mongodb:// or mongodb+srv:// URL
LOG_STORE_URLYeslogging-servicesThe Log store, which holds the Audit log, the legacy logs from v4 and the usage figuresA mongodb:// or mongodb+srv:// URL
FILE_STORE_URLNocore-services, authorization-server, item-services, file-services, background-servicesWhere file contents live. Unset: files live in the Content storeA mongodb:// or mongodb+srv:// URL

Moleculer

VariableRequiredUsed byMeaningAccepted value
TRANSPORTERYesevery nodeThe broker every node of the platform shares, such as nats://<host>:4222, or TCP if the whole platform is on one machine. Unset: a node cannot see the othersnats://<host>:4222 or tcp. The other transporters are redis, amqp, amqp10, mqtt, kafka and stan
NAMESPACEYesevery nodeThe namespace every node shares, usually awhere. Nodes in different namespaces cannot see each otherLetters, digits, ".", "_" and "-"
CACHERNoevery nodeThe node's cache. Unset: kept in the node's own memoryUnset or memory to keep it in memory, or a redis:// URL (Redis must answer)

Audit log

VariableRequiredUsed byMeaningAccepted value
ACTIVITY_CHANNEL_URLYes, on logging-servicescore-services, authorization-server, item-services, file-services, logging-services, background-servicesThe NATS server whose JetStream carries Activity to the Audit log. Unset: the nats:// TRANSPORTER is usedA nats:// URL; the server must run with -js

Redis

VariableRequiredUsed byMeaningAccepted value
TASK_MANAGER_REDIS_HOSTYesbackground-servicesThe Redis that holds the import queue. Unset: no import runsAny text
TASK_MANAGER_REDIS_PORTNobackground-servicesThe Redis port. Default: 6379A port number, 1 to 65535
TASK_MANAGER_REDIS_USERNobackground-servicesThe Redis user name, if Redis needs oneAny text
TASK_MANAGER_REDIS_PASSNobackground-servicesThe Redis password, if Redis needs oneAny text
TASK_MANAGER_REDIS_DBNobackground-servicesThe Redis database number. Default: 0A number, 0 or more

LDAP

VariableRequiredUsed byMeaningAccepted value
LDAP_DOMAINYesuser-provider-ldapThe directory server, such as ldaps://dc.example.com:636Any text
LDAP_BASEYesuser-provider-ldapThe base DN that users are searched underAny text
LDAP_USERYesuser-provider-ldapThe account the plugin binds as to search the directoryAny text
LDAP_PASSYesuser-provider-ldapThat account's passwordAny text

On this page