Configure Environment Variables
Some features of Bitwarden are not configured by the
bitwarden.sh installer. Configure these settings by editing the environment file, located at
.env file comes pre-baked with configurable variables (see Included variables), however there are additional variables which can be manually added (see Optional variables).
Whenever you make changes to
global.override.env, perform a
./bitwarden.sh rebuild to apply your changes.
This article will not define every environment variable, instead focusing on those used or configured by most installations.
The following variables are among those that already exist in
Use this field to connect to an exernal MSSQL database.
A randomly generated OpenID Connect client key. For more information, see OpenID Documentation.
A randomly generated Duo akey. For more information, see Duo's Documentation.
Client ID for YubiCloud Validation Service or self-hosted Yubico Validation Server.
Secret Key for YubiCloud Validation Service or self-hosted Yubico Validation Server.
Email address used for invitations, typically
Your SMTP server hostname (recommended) or IP address.
The SMTP port used by the SMTP server.
(Boolean) Whether your SMTP server uses an encryption protocol: