Configuration
The node reads one configuration file, /etc/tier/tierd.toml. Every key is
optional; leave the file as shipped for a default production client node.
Precedence
Each setting can come from four places. The first one present wins:
- a command-line argument;
- an environment variable, normally set in
/etc/tier/tierd.env; /etc/tier/tierd.toml;- the built-in default.
Edit the TOML file for normal configuration. Use the environment only for ad-hoc or orchestration overrides. Restart the service to apply changes:
sudo systemctl restart tierd
File format
A small TOML subset is supported: # comments (also after a value),
key = "value" scalars, and inline string arrays ["a", "b"].
Keys
| Key | Environment | Meaning |
|---|---|---|
preset |
TIER_PRESET |
Named role set: client (default), validator, or the experimental ganesha. Recommended way to set roles. See Presets. |
roles |
TIER_ROLES |
Explicit role list from client, validator, keeper, transmitter, communicator. Unset means a plain client. If both preset and roles are set, the preset wins and roles is ignored with a logged warning. |
network |
TIER_NETWORK |
Network to join. Unset means mainnet. Lowercase letters, digits, and hyphens, 1 to 32 characters. Leave unset in production. |
seeds |
TIER_SEEDS |
Seeds to join through, as "ip:port" with IPv6 in brackets. Fully replaces the seeds compiled into the binary. An empty list [] means an isolated node, never a fallback to the compiled seeds. Leave unset in production. |
version_range |
TIER_VERSION_RANGE |
Software-version window "min,max", min inclusive, max exclusive, either side may be empty. Unset uses the compiled per-network default. See Version policy. |
TIER_CONFIG sets the path of the configuration file itself (default
/etc/tier/tierd.toml). In the environment file, TIER_SEEDS takes a
space-separated list, for example TIER_SEEDS=[fd00::2]:7777 10.0.0.2:7777.
Examples
Default client on mainnet (the shipped file):
preset = "client"
Validator, a reachable backbone node that also serves client messaging:
preset = "validator"
Communicator only, with explicit roles:
roles = ["communicator"]
Private network. Use the same name and reachable seed addresses on every node, and give the seeds a non-client role:
network = "lab"
seeds = ["10.0.0.10:7777", "10.0.0.11:7777"]
Daemon arguments
The systemd unit starts /usr/bin/tierd $TIER_ARGS, with TIER_ARGS
taken from /etc/tier/tierd.env. The default listens on UDP port 7777 and joins
through the compiled seeds:
TIER_ARGS=run 7777
The daemon binds the IPv6 wildcard in dual-stack mode, so it listens on both IPv6 and IPv4 at that port. An explicit seed can be added; it is dialed in addition to the configured seeds. The seed port is a separate token:
TIER_ARGS=run 7777 203.0.113.10 7777
TIER_ARGS=run 7777 2001:db8::10 7777
A client needs no open inbound port. Infrastructure roles (validator, communicator) must be reachable on this UDP port.
Preset files and upgrades
/etc/tier/tierd.toml and /etc/tier/tierd.env are dpkg conffiles:
upgrades never overwrite your edits. Reference copies ship in
/usr/share/doc/tierd/:
tierd.client.toml: edge node, dial-out only (the default).tierd.validator.toml: validator preset.
They are overwritten on every upgrade and never read by the daemon. Copy the one you need into place, or edit the active config directly:
sudo cp /usr/share/doc/tierd/tierd.validator.toml /etc/tier/tierd.toml
sudo systemctl restart tierd
Other environment variables
| Variable | Used by | Meaning |
|---|---|---|
TIER_ID_FILE | tierd | Path of the node's identity seed. The packaged unit sets it to /var/lib/tier/node_key. Without it, $XDG_STATE_HOME/tier/node_key or ~/.local/state/tier/node_key is used. |
TIER_ADMIN_SOCK | tierctl | Admin socket path; default /run/tierd/tierd.sock. |