Skip to content
On this page

Environment

This section explains how the environment files .env and belfi.conf work.

The .env is a symbolic link, meaning that by itself it stores no content, and is a link to a different file, in this case belfi.conf. The belfi.conf file in this case is the file that is going to be generated by scripts/config.sh via scripts/subscripts/belfi.sh.

Used by

List of the files and commands .env is used by:

Depends on

List of the files belfi.conf depends on:

Variables

Table of variables this file defines after generation:

VariableDescription
$PASSWORDConfig password
$OBFPASSWORDHysteria 2 obfuscation password
$UUIDUUID
$DOMAINDomain name
$EMAILEmail address
$CERTPATHPath to the fullchain.pem TLS certificate file in the Docker Container
$PKEYPATHPath to the privkey.pem TLS private key file in the Docker Container
$LOCALCERTPATHPath to the fullchain.pem TLS certificate file on the host
$LOCALPKEYPATHPath to the privkey.pem TLS private key file on the host

File Content

The file has the following empty content:

env
PASSWORD=
OBFPASSWORD=
UUID=
DOMAIN=
EMAIL=
CERTPATH=
PKEYPATH=
LOCALCERTPATH=
LOCALPKEYPATH=

and the following unexpanded content:

env
PASSWORD=$(openssl rand -base64 48 | tr '/+' 'xQ')
OBFPASSWORD=$(openssl rand -base64 48 | tr '/+' 'xQ')
UUID=$(uuidgen)
DOMAIN=${domain}
EMAIL=${email}
CERTPATH=${certpath}
PKEYPATH=${pkeypath}
LOCALCERTPATH=${localcertpath}
LOCALPKEYPATH=${localpkeypath}

This website is released under the GPL-3 License.