Environment variables

Location

  • Docker : in the docker-compose.yml file, in the environment section.
  • Baremetal installation : .env.local file at the root of the app directory.

Docker environment variables

Variables to create (all required)Value
NEXTAUTH_URLURL as https://borgwarehouse.com
NEXTAUTH_SECRETSecret key : openssl rand -base64 32
UNIX_USERThe user of your server as borgwarehouse
FQDNFQDN as borgwarehouse.com
SSH_SERVER_PORTSSH port as 22

Optional variablesValue
FQDN_LANHostname or IP for backup through LAN repository
SSH_SERVER_PORT_LANSSH port for backup through LAN repository
SMTP variablesSee the documentation here
NEXT_TELEMETRY_DISABLEDValue 1 will disable NextJS telemetry
CRONJOB_KEYSecret key : openssl rand -base64 32

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 the docker-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_URLURL as https://borgwarehouse.com
NEXTAUTH_SECRETSecret key : openssl rand -base64 32
CRONJOB_KEYSecret key : openssl rand -base64 32
UNIX_USERThe user of your server as borgwarehouse
FQDNFQDN as borgwarehouse.com
SSH_SERVER_PORTSSH port as 22
SSH_SERVER_FINGERPRINT_RSAYour server SSH fingerprint for RSA
SSH_SERVER_FINGERPRINT_ED25519Your server SSH fingerprint for ED25519
SSH_SERVER_FINGERPRINT_ECDSAYour server SSH fingerprint for ECDSA

Optional variablesValue
FQDN_LANHostname or IP for backup through LAN repository
SSH_SERVER_PORT_LANSSH port for backup through LAN repository
SMTP variablesSee the documentation here
NEXT_TELEMETRY_DISABLEDValue 1 will disable NextJS telemetry