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 ./bwdata/env/global.override.env
. This .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 global.override.env
:
Variable | Description |
---|---|
globalSettings__sqlServer__connectionString= | Use this field to connect to an exernal MSSQL database. |
globalSettings__oidcIdentityClientKey= | A randomly generated OpenID Connect client key. For more information, see OpenID Documentation. |
globalSettings__duo__aKey= | A randomly generated Duo akey. For more information, see Duo's Documentation. |
globalSettings__yubico__clientId= | Client ID for YubiCloud Validation Service or self-hosted Yubico Validation Server. |
globalSettings__yubico__key= | Secret Key for YubiCloud Validation Service or self-hosted Yubico Validation Server. |
globalSettings__mail__replyToEmail= | Email address used for invitations, typically |
globalSettings__mail__smtp__host= | Your SMTP server hostname (recommended) or IP address. |
globalSettings__mail__smtp__port= | The SMTP port used by the SMTP server. |
globalSettings__mail__smtp__ssl= | (Boolean) Whether your SMTP server uses an encryption protocol: |