@@ -244,6 +244,7 @@ prefixing the value with `{type}:`. The following types are available:
244
244
| ` QUERY_LIMIT_DEFAULT ` | The default query limit used when not defined in the API request. | ` 100 ` |
245
245
| ` QUERY_LIMIT_MAX ` | The maximum query limit accepted on API requests. | ` -1 ` |
246
246
| ` ROBOTS_TXT ` | What the ` /robots.txt ` endpoint should return | ` User-agent: *\nDisallow: / ` |
247
+ | ` TEMP_PATH ` | Where Directus' temporary files should be managed | ` ./node_modules/.directus ` |
247
248
248
249
<sup >[ 1] </sup > The PUBLIC_URL value is used for things like OAuth redirects, forgot-password emails, and logos that
249
250
needs to be publicly available on the internet.
@@ -898,19 +899,29 @@ const publicUrl = process.env.PUBLIC_URL;
898
899
899
900
## Extensions
900
901
901
- | Variable | Description | Default Value |
902
- | ------------------------------------ | ------------------------------------------------------- | -------------- |
903
- | ` EXTENSIONS_PATH ` | Path to your local extensions folder. | ` ./extensions ` |
904
- | ` EXTENSIONS_AUTO_RELOAD ` | Automatically reload extensions when they have changed. | ` false ` |
905
- | ` EXTENSIONS_CACHE_TTL ` <sup >[ 1] </sup > | How long custom app Extensions get cached by browsers. | -- |
902
+ | Variable | Description | Default Value |
903
+ | -------------------------------------- | ------------------------------------------------------- | -------------- |
904
+ | ` EXTENSIONS_PATH ` <sup >[ 1] </sup > | Path to your local extensions folder. | ` ./extensions ` |
905
+ | ` EXTENSIONS_AUTO_RELOAD ` <sup >[ 2] </sup > | Automatically reload extensions when they have changed. | ` false ` |
906
+ | ` EXTENSIONS_CACHE_TTL ` <sup >[ 3] </sup > | How long custom app Extensions get cached by browsers. | -- |
907
+ | ` EXTENSIONS_LOCATION ` <sup >[ 4] </sup > | What configured storage location to use for extensions. | -- |
906
908
907
- <sup >[ 1] </sup > The ` EXTENSIONS_CACHE_TTL ` environment variable controls for how long custom app extensions (e.t.,
909
+ <sup >[ 1] </sup > If ` EXTENSIONS_LOCATION ` is configured, this is the path to the extensions folder within the selected
910
+ storage location.
911
+
912
+ <sup >[ 2] </sup > ` EXTENSIONS_AUTO_RELOAD ` will not work when the ` EXTENSION_LOCATION ` environment variable is set.
913
+
914
+ <sup >[ 3] </sup > The ` EXTENSIONS_CACHE_TTL ` environment variable controls for how long custom app extensions (e.t.,
908
915
interface, display, layout, module, panel) are cached by browsers. Caching can speed-up the loading of the app as the
909
916
code for the extensions doesn't need to be re-fetched from the server on each app reload. On the other hand, this means
910
917
that code changes to app extensions won't be taken into account by the browser until ` EXTENSIONS_CACHE_TTL ` has expired.
911
918
By default, extensions are not cached. The input data type for this environment variable is the same as
912
919
[ ` CACHE_TTL ` ] ( #cache ) .
913
920
921
+ <sup >[ 4] </sup > By default extensions are loaded from the local file system. ` EXTENSIONS_LOCATION ` can be used to load
922
+ extensions from a storage location instead. Under the hood, they are synced into a local directory within ` TEMP_PATH `
923
+ and then loaded from there.
924
+
914
925
## Messenger
915
926
916
927
| Variable | Description | Default Value |
@@ -1052,14 +1063,16 @@ These environment variables only exist when you're using the official Docker Con
1052
1063
For more information on what these options do, please refer to
1053
1064
[ the ` pm2 ` documentation] ( https://pm2.keymetrics.io/docs/usage/application-declaration/ ) .
1054
1065
1055
- | Variable | Description | Default |
1056
- | ------------------------ | ------------------------------------------------------------------ | ----------- |
1057
- | ` PM2_INSTANCES ` | Number of app instance to be launched | ` 1 ` |
1058
- | ` PM2_EXEC_MODE ` | One of ` fork ` , ` cluster ` | ` 'cluster' ` |
1059
- | ` PM2_MAX_MEMORY_RESTART ` | App will be restarted if it exceeds the amount of memory specified | — |
1060
- | ` PM2_MIN_UPTIME ` | Min uptime of the app to be considered started | — |
1061
- | ` PM2_LISTEN_TIMEOUT ` | Time in ms before forcing a reload if app not listening | — |
1062
- | ` PM2_KILL_TIMEOUT ` | Time in milliseconds before sending a final SIGKILL | — |
1063
- | ` PM2_MAX_RESTARTS ` | Number of failed restarts before the process is killed | — |
1064
- | ` PM2_RESTART_DELAY ` | Time to wait before restarting a crashed app | ` 0 ` |
1065
- | ` PM2_AUTO_RESTART ` | Automatically restart Directus if it crashes unexpectedly | ` false ` |
1066
+ | Variable | Description | Default |
1067
+ | ----------------------------- | ------------------------------------------------------------------ | ----------- |
1068
+ | ` PM2_INSTANCES ` <sup >[ 1] </sup > | Number of app instance to be launched | ` 1 ` |
1069
+ | ` PM2_EXEC_MODE ` | One of ` fork ` , ` cluster ` | ` 'cluster' ` |
1070
+ | ` PM2_MAX_MEMORY_RESTART ` | App will be restarted if it exceeds the amount of memory specified | — |
1071
+ | ` PM2_MIN_UPTIME ` | Min uptime of the app to be considered started | — |
1072
+ | ` PM2_LISTEN_TIMEOUT ` | Time in ms before forcing a reload if app not listening | — |
1073
+ | ` PM2_KILL_TIMEOUT ` | Time in milliseconds before sending a final SIGKILL | — |
1074
+ | ` PM2_MAX_RESTARTS ` | Number of failed restarts before the process is killed | — |
1075
+ | ` PM2_RESTART_DELAY ` | Time to wait before restarting a crashed app | ` 0 ` |
1076
+ | ` PM2_AUTO_RESTART ` | Automatically restart Directus if it crashes unexpectedly | ` false ` |
1077
+
1078
+ <sup >[ 1] </sup > [ Redis] ( #redis ) is required in case of multiple instances.
0 commit comments