Configuration

Extensions

Configuration for extensions and the Directus Marketplace.
Environment Variables
Environment variables are configurable for Directus Business Cloud and Enterprise Cloud projects via our Customer Success team. You can also set environment variables in self-hosted projects.
VariableDescriptionDefault Value
EXTENSIONS_PATH1Path to your local extensions directory../extensions
EXTENSIONS_MUST_LOADExit the server when any API extension fails to load.false
EXTENSIONS_AUTO_RELOAD2Automatically reload extensions when they have changed.false
EXTENSIONS_CACHE_TTL3How long custom app Extensions get cached by browsers.
EXTENSIONS_LOCATION4What configured storage location to use for extensions.
EXTENSIONS_LIMITMaximum number of extensions you allow to be installed through the Marketplace.

1 If EXTENSIONS_LOCATION is configured, this is the path to the extensions directory within the selected storage location.

2 EXTENSIONS_AUTO_RELOAD will not work when the EXTENSION_LOCATION environment variable is set.

3 The EXTENSIONS_CACHE_TTL environment variable controls for how long app extensions are cached by browsers. By default, extensions are not cached.

4 By default extensions are loaded from the local file system. EXTENSIONS_LOCATION can be used to load extensions from a storage location instead.

Marketplace

VariableDescriptionDefault Value
MARKETPLACE_TRUSTOne of sandbox, allsandbox
MARKETPLACE_REGISTRYThe registry to use for the Directus Marketplace.https://registry.directus.io
Sandbox
By default, the Directus Marketplace will allow installation of all App extension types and only API extension types that use our secure sandbox.