Skip to main content
This page describes the environment variables that are supported in the config/variables.env file for Toolkit deployments. The config/variables.env file consists of variable definitions in the form NAME=value; lines beginning with # are treated as comments.
It is necessary that you re-create the Docker containers after changing anything in overleaf.rc or variables.env by running bin/up.

All versions

These environment variables are compatible with Server CE and Server Pro and provide an easy migration path between these two on-premise versions. They can also be used with both Toolkit and Docker Compose deployments.
Previously, these environment variables were prefixed with SHARELATEX_ instead of OVERLEAF_.
It is possible to enforce password restrictions on users when using the Overleaf login system (local accounts), not an SSO option such as LDAP. For SSO accounts, password policies will be enforced by your identity provider or directory service, additionally allowing support for multi-factor authentication.
Last modified on October 4, 2026