Back to Directus

Environment Variables

content/cloud/3.configuration/2.environment-variables.md

latest1.1 KB
Original Source

You can configure your Directus project using a number of environment variable presets which can be configured in the Cloud dashboard.

::callout{icon="material-symbols:info-outline"} Once you save these changes, your project will redeploy. ::

Available Configuration Options

While the Cloud dashboard provides configuration via a UI with some preset options, the options relate to the following environment variables:

Files

  • FILES_MAX_UPLOAD_SIZE

Read more about Upload Limit environment variables.

Security & Limits

  • PASSWORD_RESET_URL_ALLOW_LIST
  • USER_INVITE_URL_ALLOW_LIST
  • USER_REGISTER_URL_ALLOW_LIST

Read more about Security environment variables.

CORS

  • CORS_ENABLED
  • CORS_ORIGIN
  • CORS_METHODS
  • CORS_ALLOWED_HEADERS
  • CORS_EXPOSED_HEADERS
  • CORS_CREDENTIALS
  • CORS_MAX_AGE

Read more about CORS environment variables.