Environment variables
Location
- Docker : in the
docker-compose.yml
file, in theenvironment
section. - Baremetal installation :
.env.local
file at the root of the app directory.
Docker environment variables
Variables to create (all required) | Value |
---|---|
NEXTAUTH_URL | URL as https://borgwarehouse.com |
NEXTAUTH_SECRET | Secret key : openssl rand -base64 32 |
UNIX_USER | The user of your server as borgwarehouse |
FQDN | FQDN as borgwarehouse.com |
SSH_SERVER_PORT | SSH port as 22 |
Optional variables | Value |
---|---|
FQDN_LAN | Hostname or IP for backup through LAN repository |
SSH_SERVER_PORT_LAN | SSH port for backup through LAN repository |
SMTP variables | See the documentation here |
NEXT_TELEMETRY_DISABLED | Value 1 will disable NextJS telemetry |
CRONJOB_KEY | Secret key : openssl rand -base64 32 |
HOSTNAME | Value :: will force the app to start on IPv6 if needed |
DISABLE_INTEGRATIONS | Value true will disable the integrations (API tokens to CRUD repositories) (≥v2.4.0) |
DISABLE_DELETE_REPO | Value true will globally disable the possibility to delete a repository (≥v2.4.0) |
HIDE_SSH_PORT | Value true will hide the SSH port in the UI : quickcommands & wizard (≥v2.4.0) |
For the
NEXTAUTH_URL
, be sure to specify the right protocol : http
or https
. Indicating an https
URL when using http
will make login impossible.Of course, don't use HTTP if you can, use HTTPS, especially if you use BorgWarehouse over the Internet.
Important details about docker environment variables :
- The SSH fingerprints are automatically injected in the container.
- The
CRONJOB_KEY
is automatically generated if not provided. But, if you want to trigger a job from outside the container, you must provide it to know the key. - The
SSH_SERVER_PORT
is the port exposed by the container. It must match the port used in thedocker-compose.yml
file. - If the
NEXTAUTH_SECRET
is not provided, it will be automatically generated. But, at each restart of your borgwarehouse container, a new secret will be generated and all users will be disconnected. So, it’s better to provide it.
Baremetal environment variables
Variables to create (all required) | Value |
---|---|
NEXTAUTH_URL | URL as https://borgwarehouse.com |
NEXTAUTH_SECRET | Secret key : openssl rand -base64 32 |
CRONJOB_KEY | Secret key : openssl rand -base64 32 |
UNIX_USER | The user of your server as borgwarehouse |
FQDN | FQDN as borgwarehouse.com |
SSH_SERVER_PORT | SSH port as 22 |
SSH_SERVER_FINGERPRINT_RSA | Your server SSH fingerprint for RSA |
SSH_SERVER_FINGERPRINT_ED25519 | Your server SSH fingerprint for ED25519 |
Optional variables | Value |
---|---|
FQDN_LAN | Hostname or IP for backup through LAN repository |
SSH_SERVER_PORT_LAN | SSH port for backup through LAN repository |
SMTP variables | See the documentation here |
NEXT_TELEMETRY_DISABLED | Value 1 will disable NextJS telemetry |
DISABLE_INTEGRATIONS | Value true will disable the integrations (API tokens to CRUD repositories) (≥v2.4.0) |
DISABLE_DELETE_REPO | Value true will globally disable the possibility to delete a repository (≥v2.4.0) |
HIDE_SSH_PORT | Value true will hide the SSH port in the UI : quickcommands & wizard (≥v2.4.0) |
For the
NEXTAUTH_URL
, be sure to specify the right protocol : http
or https
. Indicating an https
URL when using http
will make login impossible.Of course, don't use HTTP if you can, use HTTPS, especially if you use BorgWarehouse over the Internet.