Environment variables
Environment variables read by HostWall and its install script.
Settings in the config file and command-line flags take precedence over these variables.
HostWall
| Variable | Default | Effect |
|---|---|---|
HOSTWALL_CONFIG | /etc/hostwall/hostwall.yaml (Linux) | Config file path, for every command. --config overrides it. |
HOSTWALL_DATA | /var/lib/hostwall (Linux) | Data directory when server.data_dir isn't set. --data overrides both. |
HOSTWALL_DASHBOARD | unset (127.0.0.1:9443) | Dashboard address when server.dashboard isn't set. The Docker image sets it to 0.0.0.0:9443. |
HOSTWALL_DEV_WEB | unset | For developers: serve the dashboard UI from this directory instead of the copy built into the binary, so UI edits show on reload. Don't use it in production. |
The Docker image sets HOSTWALL_CONFIG=/etc/hostwall/hostwall.yaml, HOSTWALL_DATA=/var/lib/hostwall and HOSTWALL_DASHBOARD=0.0.0.0:9443.
Install script
| Variable | Example | Effect |
|---|---|---|
HOSTWALL_VERSION | v0.1.0 | Install this version instead of the latest |
HOSTWALL_NO_SERVICE | 1 | Only install the binary; no user, directories or systemd service |
HOSTWALL_BASE_URL | https://mirror.example.com/hostwall/v0.1.0 | Download release files from this URL instead of GitHub. Requires HOSTWALL_VERSION. |
Pass them to sh: curl -fsSL https://www.hostwall.io/install | HOSTWALL_VERSION=v0.1.0 sh.