> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/hosting/configuration/environment-variables.md).

# Environment variables for Duaer

Configure the self-hosted Duaer process with environment variables.
## Process configuration, not $vars

DUAER_ENCRYPTION_KEY, the execution mode, logging, and feature switches live in the environment. Duaer reads them at startup. [Canvas variables](/code/variables.md) are stored on the instance or the project and read as $vars. Neither side overwrites the other.

From 2.0, expressions and the Code node cannot read process.env. To give a workflow a value, use a variable or a credential. Refer to [configuration methods](/hosting/environment-variables/configuration-methods.md).
## Questions

### Are environment variables the same as canvas $vars in Duaer?

No. Environment variables belong to the host process. $vars are read by workflows and stored on the instance or project.

