Skip to content
On this page

build Script

This section explains how the build script works.

The build script is the main file of the application, it calls several subscripts to generate configuration files and start up the application.

Used by

List of the commands this file is used by:

  • ./build

Depends on

List of the files this file depends on:

Variables

This file defines all variables in the project indirectly.

Table of variables this file defines:

VariableDescription
$PASSWORDvia scripts/config.sh via scripts/subscripts/belfi.sh
$OBFPASSWORDvia scripts/config.sh via scripts/subscripts/belfi.sh
$UUIDvia scripts/config.sh via scripts/subscripts/belfi.sh
$DOMAINvia scripts/config.sh via scripts/subscripts/belfi.sh
$EMAILvia scripts/config.sh via scripts/subscripts/belfi.sh
$CERTPATHvia scripts/config.sh via scripts/subscripts/belfi.sh
$PKEYPATHvia scripts/config.sh via scripts/subscripts/belfi.sh
$LOCALCERTPATHvia scripts/config.sh via scripts/subscripts/belfi.sh
$LOCALPKEYPATHvia scripts/config.sh via scripts/subscripts/belfi.sh
$domainvia scripts/config.sh via scripts/input.sh
$emailvia scripts/config.sh via scripts/input.sh
$certpathvia scripts/config.sh via scripts/certificate.sh
$pkeypathvia scripts/config.sh via scripts/certificate.sh
$localcertpathvia scripts/config.sh via scripts/certificate.sh
$localpkeypathvia scripts/config.sh via scripts/certificate.sh

Table of variables this file utilizes:

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
$domainLocal domain name variable
$emailLocal domain name variable
$certpathLocal domain name variable
$pkeypathLocal domain name variable
$localcertpathLocal domain name variable
$localpkeypathLocal domain name variable

File Content

The file has the following content:

bash
#!/usr/bin/env bash

./scripts/setup.sh
source ./scripts/input.sh
source ./scripts/certificate.sh
source ./scripts/config.sh
source ./scripts/client.sh

docker compose up -d

./scripts/output.sh

This website is released under the GPL-3 License.