For the complete documentation index, see llms.txt. This page is also available as Markdown.

Use environment variables

This section lists the environment variables that you can use to change n8n's configuration settings when self-hosting n8n.

File-based configuration

You can provide a configuration file for n8n. You can also append _FILE to certain variables to provide their configuration in a separate file.

In this section

  • Ask n8n AI: variables for n8n's built-in AI help assistant.

  • Binary data: variables for storing and handling binary data.

  • Credentials: variables for credential overwrites and encryption.

  • Database: variables for database connection and configuration.

  • Deployment: variables for instance identity, encryption, and the public API.

  • Endpoints: variables for customizing n8n's REST and webhook endpoint paths.

  • Executions: variables for execution timeouts, data pruning, and process modes.

  • Expression engine: variables for controlling expression evaluation.

  • External data storage: variables for storing data outside the n8n database.

  • External hooks: variables for the external hooks file location.

  • External secrets: variables for external secrets vaults.

  • Insights: variables for the Insights usage tracking feature.

  • Logs: variables for logging level, format, and destinations.

  • License: variables for activating and managing your n8n license.

  • Nodes: variables for excluding or including specific nodes.

  • OpenTelemetry: variables for exporting execution traces.

  • Queue mode: variables for running n8n across multiple worker processes.

  • Scheduler: variables for the durable scheduler.

  • Security: variables for hardening a self-hosted instance.

  • Source control: variables for Git-based source control.

  • SSO: variables for single sign-on.

  • SSRF protection: variables for restricting outbound requests from workflow nodes.

  • Task runners: variables for configuring external Code node execution.

  • Timezone and localization: variables for setting your instance's timezone and locale.

  • User management and 2FA: variables for user management and two-factor authentication.

  • Workflows: variables for workflow defaults and templates.

  • Workflow history: variables for workflow version history.

Last updated

Was this helpful?