Skip to content
On this page

belfi.sh Script

This section explains how the belfi.sh script works.

belfi.sh is a script that is responsible for generating the belfi.conf and .env environment files.

Used by

List of the files and commands this file is used by:

Depends on

List of the files this file depends on:

Variables

Table of variables this file defines:

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 content:

bash
#!/usr/bin/env bash

cat << EOF > belfi.conf
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}
EOF

This website is released under the GPL-3 License.