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.
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.
Variable | Description | Default Value |
---|---|---|
EXTENSIONS_PATH 1 | Path to your local extensions directory. | ./extensions |
EXTENSIONS_MUST_LOAD | Exit the server when any API extension fails to load. | false |
EXTENSIONS_AUTO_RELOAD 2 | Automatically reload extensions when they have changed. | false |
EXTENSIONS_CACHE_TTL 3 | How long custom app Extensions get cached by browsers. | |
EXTENSIONS_LOCATION 4 | What configured storage location to use for extensions. | |
EXTENSIONS_LIMIT | Maximum 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
Variable | Description | Default Value |
---|---|---|
MARKETPLACE_TRUST | One of sandbox , all | sandbox |
MARKETPLACE_REGISTRY | The 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.
By default, the Directus Marketplace will allow installation of all App extension types and only API extension types that use our secure sandbox.