[sources] section of agent.toml replaces each with a source you run: an artifact mirror, snapshot archives, and checkpoint endpoints.
These settings work on any Agent — a Cloud Agent included — but they’re designed for closed networks, where the Self-hosted install sets them up. agent.toml is read once at startup: after editing it, run systemctl restart nvcl-agent.
Artifact mirror
Withmirror set, the Agent downloads node binaries, their bundled Java runtime, detached signatures, apt repository keys, and its own self-update tarball from the mirror only — never from the public origin:
- Layout. The mirror holds each file at
<mirror>/<origin-host>/<origin-path>, with the path percent-decoded on disk (ajdk-25.0.3%2B9directory in a URL isjdk-25.0.3+9on disk). The chain packs and the platform archive in the delivery kit already carry theirmirror/trees in this layout — you only copy them in. - A missing file fails the install, naming the mirror path; the origin is never tried.
- Pinned digests only. A client version without a digest pinned in the Agent’s catalog is refused under a mirror, since a checksum file from the same mirror would vouch for nothing. Self-update is checked against the sha256 registered with the release.
- What’s offered. Under a mirror the Agent advertises as installable only what a chain pack carries: per client, the newest pinned version each network installs. Older versions keep running on the nodes already on them, but an update that keeps one of them isn’t offered.
- No symlinks. Keep the tree free of them —
curlfollows one out of afile://mirror. - No credentials in the URL. It appears in the Agent log and in the download errors the console shows; a URL with userinfo or a query is refused at startup.
Serve the mirror
-
file://— the same tree at/srv/nvcl-mirroron every Agent host, mounted read-only over NFS or copied, for example from the Hub host withtar -C /srv -cf - nvcl-mirror | ssh root@<agent host> tar -C /srv -xf -. The Agents usemirror = "file:///srv/nvcl-mirror". -
http(s) — a static site, for example nginx on the mirror host. Serve only the mirror; keep snapshots and anything else off this site:
The Agents then use
mirror = "https://files.example.local/nvcl-mirror". For a certificate from your internal CA, the Agents need that CA in[tls] ca_filetoo.
Check the mirror
agent mirror-check lists every file the Agent’s catalog needs for the chains you name that the mirror lacks, and exits non-zero — before a node needs one. It needs no config file:
On an http(s) mirror it checks with
HEAD: a 404 or 410 is a missing file; any other refusal (a 403, or a 405 where HEAD isn’t allowed) is an error, and so is a redirect out of the mirror, since the Agents couldn’t follow it. The Agent still verifies each file’s digest when it installs it.
agent artifacts --chains <list> prints the whole inventory as JSON, including the client versions a mirror can’t serve and why.
Not covered by the mirror
These still go to their public origins and fail on a closed network unless you provide them another way:- apt packages — point the host’s apt sources at your own apt mirror.
- Container images — used by nodes on the Docker runtime.
- Snapshots and checkpoint endpoints without a
[sources]entry — see below.
Snapshots
[[sources.snapshot]] names the archive a chain’s node bootstraps from instead of its public snapshot source — one entry per chain, network, and optional variant. Today it’s used by Tron, and by Ethereum for reth on mainnet.
Keep snapshot files in a root-owned directory outside every node’s data directory, for example
/srv/snapshots. A file: archive is read where it is and never deleted: the Agent hashes it, then tar reads it again by path. A file replaced in between is detected and the attempt retried — but whoever can write that directory can keep a bootstrap from finishing.
The config is read once at startup. A refreshed archive needs its new
sha256 and an Agent restart.Tron snapshots
Obtain the archive from the Tron snapshot providers on a connected machine, check it against the provider’s published checksum, and move it into the closed network. Add one entry for a Full node and one withvariant = "lite" for a Lite node:
sha256 for an https archive too. A node whose entry has none is refused at planning, and a node of that kind doesn’t start again — after a restart or an update — until the entry is fixed. Https snapshots are downloaded with aria2, so install it on Tron hosts.
reth snapshot
Areth node on mainnet downloads its database with reth download. The reth variant names the snapshot manifest (manifest.json) that reth reads instead of discovering one at snapshots.reth.rs. Only the mainnet entry is used.
sha256: reth checks the files it extracts against the BLAKE3 sums the manifest lists. An entry with one is refused at planning, and a mainnet reth node doesn’t start until it’s fixed. reth, not the Agent, reads the manifest and fetches every archive it names, file:// paths included — trust the manifest’s host as you trust the mirror. A manifest copied from snapshots.reth.rs carries a public base_url: point it at your copy, or remove it so reth looks for the archives next to the manifest.
reth on sepolia and hoodi starts from a public snapshot no [sources] entry replaces, so it can’t sync on a closed network — run geth or besu there.
Ethereum checkpoint
Lighthouse starts from a checkpoint it fetches from a beacon node.[[sources.checkpoint]] names the one endpoint the Agent uses for a chain and network; the public checkpoint endpoints are then never contacted. Add one per network the host runs:
- Use a beacon node of your own, or — without one — a single public provider that needs no key, and allow only it through your firewall.
- Before it starts an Ethereum node on that network, the Agent checks the endpoint with the block and state requests Lighthouse makes, reusing a result for up to five minutes.
- An endpoint that hasn’t answered since the Agent started fails the node, naming the URL, until it does. One that answered keeps being used if it dies later. The last working endpoint isn’t remembered across restarts: after a reboot with the endpoint down, every Ethereum node on that network waits until it answers.
- The URL is
httporhttps; a trailing/is dropped. It appears in the Agent log and in the reasons the console shows, so userinfo or a query is refused at startup — and keep tokens out of the path too.
CA file
The Agent ships its own Java runtime, which doesn’t read the OS trust store. To reach a Hub, an https mirror, a snapshot host, or a checkpoint endpoint behind your internal CA, name the CA in[tls] ca_file:
install.sh writes it for you from NVCL_CA_FILE. See CA trust.
Related
- Install · Upgrade
- Provision on bare metal — the rest of
agent.toml. - Tron · Ethereum