跳至主要内容

Configure dig-node

A dig-node runs headless with sensible defaults; you tune it through its config file and DIGNODE_* environment variables.

What you can set

SettingWhat it controls
Listeners / portsThe address and port the dig RPC is served on (and dig.local resolution).
Cache capThe maximum on-disk size of the .dig cache (a set of capsules); the node evicts to stay under it.
UpstreamThe remote the node blind-fetches ciphertext + proofs from when it doesn't have a capsule cached (defaults to the public network).
RelayThe relay the node keeps a constant connection to so peers behind NAT can reach it — defaults to the public relay.dig.net. Override with DIG_RELAY_URL (e.g. point at your own relay); set DIG_RELAY_URL=off to disable it (air-gapped nodes). See Run a relay.

The node only ever stores and relays ciphertext keyed by hashes — configuration never changes the blind serving contract. A capsule it doesn't have is fetched from the upstream, verified, and cached.

Apply settings

Set values in the config file or as DIGNODE_* environment variables (env overrides file). After changing settings, restart the service (the Windows service / systemctl restart dig-node / launchctl).