> ## Documentation Index
> Fetch the complete documentation index at: https://docs.novacula.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Install Self-hosted Novacula

> From bare VMs to a running Hub, Agents, and nodes on a closed network

This runbook takes you from bare VMs to a working installation on a closed network: the delivery kit verified, the mirror loaded, telemetry and the Hub running behind your nginx, Agents connected, and nodes serving RPC. Later releases follow [Upgrade](https://docs.novacula.io/recipes/self-hosted/upgrade.md).

Check the [requirements](https://docs.novacula.io/recipes/self-hosted/overview.md#requirements) first. Commands run as `root`, in `bash`, on the host each step names. Replace every `<...>` placeholder, brackets included. The examples use these values — replace them with yours:

| Example | Meaning |
| - | - |
| `https://hub.example.local` | The Hub's URL |
| `10.20.0.0/16` | The Agents' network |
| `/srv/nvcl-mirror` | The mirror directory |
| `files.example.local` | The mirror host, for an http(s) mirror |
| `0.1.21` | The release |
| `nvcl-ca.crt` | Your internal CA certificate (PEM), in the working directory of each host |

## Decide the proxy mode

Pick the **proxy mode** before you start. It's set once on the Hub (`NVCL_PROXY_MODE`) and must be the same in every Agent's `[proxy] mode`:

| | `off` | `nginx` |
| - | - | - |
| **Node RPC** | **Direct** ports with a source allow-list; any TLS in front is yours | [Pools](https://docs.novacula.io/docs/nodes/pools.md), served by an nginx on each Agent host |
| **RPC keys and rate limits** | No | Yes, per pool |
| **Domains** | None from Novacula | One per pool — a one-member pool gives a single node a domain |
| **Agent host needs** | `nftables`, for the allow-list | nginx owning `:80` and `:443` on the host's advertised address |

[Proxy modes and TLS](https://docs.novacula.io/recipes/self-hosted/proxy-and-tls.md) explains both in depth.

## Prepare the hosts

On **every** host, put your CA in the OS trust store:

```bash theme={null}
cp nvcl-ca.crt /usr/local/share/ca-certificates/nvcl-ca.crt
update-ca-certificates
```

Then install the packages each host needs from your apt mirror:

| Host | Install |
| - | - |
| Hub host | `apt-get install -y nginx` |
| Tron Agent hosts | `apt-get install -y nftables aria2` — the Agent keeps the `java-tron` metrics port closed with nftables and downloads https snapshots with aria2 |
| Agent hosts in `off` mode | `apt-get install -y nftables` — the Agent turns each node's allow-list into nftables rules; a node with a direct port waits until `nft` is installed |
| Agent hosts in `nginx` mode | `apt-get install -y nginx` |

## Postgres 17

Your DBA provides Postgres 17 on the Hub host or reachable from it — or install it from your apt mirror. The Hub needs an empty database and a role that owns it. On the database host:

```bash theme={null}
sudo -u postgres createuser --pwprompt nvcl
sudo -u postgres createdb -O nvcl nvcl
```

> [!NOTE]
>
> Back up the database before every Hub upgrade, from the Hub host. The password is read from the terminal, so it stays out of the shell history and the process list:
>
> ```bash theme={null}
> install -d -m 0700 /var/backups/nvcl
> read -r -s -p 'db password: ' PGPASSWORD; echo; export PGPASSWORD
> pg_dump -Fc -h <db host> -U nvcl -d nvcl -f /var/backups/nvcl/nvcl-$(date +%F-%H%M).dump
> unset PGPASSWORD
> ```
>
> A restore goes into the same database with the Hub stopped: `pg_restore --clean --if-exists -h <db host> -U nvcl -d nvcl /var/backups/nvcl/<file>.dump`.

## Verify the delivery kit

On the Hub host, work in a directory only `root` can write, so nothing changes a file between its check and its use:

```bash theme={null}
rm -rf /root/nvcl-incoming && install -d -m 0700 /root/nvcl-incoming
cp <the directory you received>/* /root/nvcl-incoming/
cd /root/nvcl-incoming
```

**1. Pin the release key**

With the first delivery — and whenever Novacula announces a new key — keep the release public key on the Hub host, **only if** its fingerprint matches the one you received over the second channel:

```bash theme={null}
fp=$(openssl pkey -pubin -in nvcl-release.pub.pem -outform der | sha256sum | cut -d' ' -f1)
if [ "$fp" = "<fingerprint from the second channel>" ]; then
  install -D -m 0644 nvcl-release.pub.pem /etc/nvcl/nvcl-release.pub.pem
else
  echo "STOP: the key's fingerprint is $fp"
fi
```

Every delivery is checked against this pinned copy, never against a `nvcl-release.pub.pem` that arrives with a kit — whoever could change an archive could change that key too.

**2. Check the signed listing and extract**

Check the listing's signature, that it is the listing of the release you expect, and every archive it names that you received. Extract only those, and only if all three checks pass:

```bash theme={null}
v=<release>
if openssl dgst -sha256 -verify /etc/nvcl/nvcl-release.pub.pem -signature SHA256SUMS.sig SHA256SUMS &&
   ! awk '{print $2}' SHA256SUMS | grep -vF -- "-$v-linux-x64.tar.gz" &&
   sha256sum -c --ignore-missing SHA256SUMS; then
  rm -rf /root/nvcl-kit && mkdir -p /root/nvcl-kit
  for a in $(awk '{print $2}' SHA256SUMS); do
    [ -e "$a" ] || continue
    tar -xzf "$a" -C /root/nvcl-kit || echo "FAILED: $a"
  done
else
  echo "STOP: the kit does not verify"
fi
```

It must print `Verified OK`, `OK` for each archive you received, and no archive name, `FAILED`, or `STOP` line. A changed archive fails the digest check; a whole older release fails the name check (it's signed too); anything else in the directory is never extracted.

**3. Check the files inside**

Check every extracted archive's own file listing. The loop must print nothing, and every `release` the last command prints must be your release:

```bash theme={null}
for d in /root/nvcl-kit/*/; do (cd "$d" && sha256sum -c --quiet SHA256SUMS) || echo "FAILED: $d"; done
grep -h '"release"' /root/nvcl-kit/*/manifest.json
```

A chain pack you receive on its own later is checked the same way with that release's `SHA256SUMS` and `SHA256SUMS.sig`, or with its own signature: `openssl dgst -sha256 -verify /etc/nvcl/nvcl-release.pub.pem -signature <archive>.sig <archive>`.

## Load the mirror

Agents download node binaries, their Java runtime, and their own updates **from the mirror only**, never from the public origin. Load it on the Hub host from the extracted kit; if another host serves the mirror, copy `/srv/nvcl-mirror` there afterwards:

```bash theme={null}
install -d -m 0755 /srv/nvcl-mirror
for d in /root/nvcl-kit/*/; do cp -a "$d/mirror/." /srv/nvcl-mirror/; done
chown -R root:root /srv/nvcl-mirror
find /srv/nvcl-mirror -type l
```

The last command must print nothing — keep the tree free of symlinks. Later releases are added to the same tree; never delete files there while a node may still use them.

Serve the mirror as a `file://` tree on every Agent host (mounted read-only over NFS, or copied) or as a static http(s) site. [Agent sources](https://docs.novacula.io/recipes/self-hosted/agent-sources.md#artifact-mirror) has both layouts and an nginx site for the http(s) one.

Then check that the mirror is complete, with the Agent from the verified kit, for the chains whose packs you loaded, exactly as the Agents will reach it:

```bash theme={null}
cdn=nvcl-prod-releases.fra1.cdn.digitaloceanspaces.com
v=<release>
check=$(mktemp -d)
tar -xzf /root/nvcl-kit/nvcl-platform-$v/mirror/$cdn/agent/$v/nvcl-agent-$v-linux-x64.tar.gz -C "$check"
"$check/agent/bin/agent" mirror-check --mirror <the Agents' mirror, e.g. file:///srv/nvcl-mirror> \
  --chains <chains, e.g. bitcoin,ethereum> \
  --agent-url https://$cdn/agent/$v/nvcl-agent-$v-linux-x64.tar.gz
rm -rf "$check"
```

It lists every file the Agent needs that the mirror lacks and exits non-zero if there is any. For an http(s) mirror, publish it first and run the check from a host on the Agents' network; for an https mirror under your CA, add `--ca-file /usr/local/share/ca-certificates/nvcl-ca.crt` — the Agent's own Java runtime doesn't read the OS trust store.

## Telemetry

On the Hub host, install Mimir and Loki from `telemetry/nvcl-telemetry-<release>-linux-x64.tar.gz` in the platform archive, following the **Install** section of the `README.md` inside that tarball. Run its commands from `/root/nvcl-kit/nvcl-platform-<release>/telemetry/` and leave out the first one (`sha256sum -c`): the archive ships no `.sha256` beside the tarball, and the kit check above already covered it. The commands wait until both stores answer `/ready`.

Neither store authenticates its callers, so confirm nothing listens off loopback. This must print lines for `9009` and `3100` at least, and every address must start with `127.0.0.1:` or `[::1]:`:

```bash theme={null}
ss -Hltun '( sport = :9009 or sport = :9095 or sport = :7946 or sport = :3100 or sport = :9096 )' | awk '{print $5}'
```

> [!NOTE]
>
> The supported layout keeps both stores on the Hub host, on loopback. Moving them to another host needs a reverse proxy in front of them that verifies the Hub's tokens — you provide and run it; the telemetry `README.md` describes what it must check.

## Hub

**1. Unpack the Hub**

```bash theme={null}
cd /root/nvcl-kit/nvcl-platform-<release>/hub
useradd --system --no-create-home --shell /usr/sbin/nologin nvcl
mkdir -p /opt/nvcl
tar -xzf nvcl-hub-<release>-linux-x64.tar.gz -C /opt/nvcl
install -d -m 0750 -o root -g nvcl /etc/nvcl
install -m 0640 -o root -g nvcl /opt/nvcl/nvcl-hub/hub.env.example /etc/nvcl/hub.env
```

The tarball holds its own Java runtime, the Hub, the web console, the launcher `bin/nvcl-hub`, and the unit `systemd/nvcl-hub.service`.

**2. Generate the secrets**

The Hub refuses to start without its signing and encryption keys and the bootstrap password. Generate the secrets straight into `hub.env`:

```bash theme={null}
(
  cd "$(mktemp -d)" || exit 1
  openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 -out jwt.key
  openssl pkey -in jwt.key -pubout -out jwt.pub
  set_env() { sed -i "s|^$1=.*|$1=$2|" /etc/nvcl/hub.env; }
  set_env NVCL_JWT_PRIVATE_KEY "$(grep -v -- ----- jwt.key | tr -d '\n')"
  set_env NVCL_JWT_PUBLIC_KEY "$(grep -v -- ----- jwt.pub | tr -d '\n')"
  set_env NVCL_HUB_SECRET_KEY "$(openssl rand -base64 32)"
  set_env NVCL_ALERT_SECRET_KEY "$(openssl rand -base64 32)"
  set_env NVCL_AUTH_SECRET_KEY "$(openssl rand -base64 32)"
  rm jwt.key jwt.pub
)
```

> [!WARNING]
>
> Keep a copy of the whole `/etc/nvcl/hub.env` with your backups, stored apart from the database dumps — in your secret store, for example. `NVCL_HUB_SECRET_KEY`, `NVCL_ALERT_SECRET_KEY`, and `NVCL_AUTH_SECRET_KEY` encrypt the stored secrets, alert-channel credentials, and authenticator secrets: without them those rows can't be read, and with them anyone holding a dump can. To restore onto a new Hub host, install that copy instead of generating new keys.

**3. Fill in hub.env**

Every key in `/etc/nvcl/hub.env` carries a comment. Edit the rest by hand:

| Key | Set to |
| - | - |
| `SERVER_ADDRESS` | `127.0.0.1`, as given — the Hub listens on `127.0.0.1:9090` and nginx on this host is its only client. |
| `NVCL_PUBLIC_URL` | The https origin users and Agents reach through nginx, e.g. `https://hub.example.local`. It's also the token issuer, the base of email links, and the Hub URL baked into `install.sh`. |
| `NVCL_NETWORK_PRIVATE_CIDRS` | The private ranges the Hub may dial, e.g. `10.20.0.0/16` — see [Private networks the Hub may dial](https://docs.novacula.io/recipes/self-hosted/proxy-and-tls.md#private-networks-the-hub-may-dial). In `nginx` mode it must hold the Agents' addresses. |
| `NVCL_DATABASE_URL` | `postgresql://nvcl:<db password>@<db host>:5432/nvcl`, with characters such as `/`, `@`, or `:` in the password percent-encoded (`p/w@rd` is `p%2Fw%40rd`). |
| `NVCL_JWT_KEY_ID` | `nvcl-1`, as given; change it when you rotate the token key pair. |
| `NVCL_AUTH_MFA_ENROLLMENT_ENABLED` | `true` to let users enroll an authenticator app, else `false`. |
| `NVCL_AUTH_BOOTSTRAP_USERS_0_EMAIL`, `..._PASSWORD`, `..._SUPER_ADMIN` | The super-admin created at the first start; `..._SUPER_ADMIN` stays `true`. |
| `NVCL_WHITELIST_ENTRIES` | Who may register and create an organization — comma-separated addresses or `*@domain` rules. Empty lets anyone who reaches the console register. Without an SMTP relay nobody confirms the address they register with, so a `*@domain` rule admits anyone who types such an address: list single addresses, or only the super-admin's and create organizations yourself. |
| `NVCL_PROXY_MODE` | `off` or `nginx` (see [above](#decide-the-proxy-mode)). |
| `NVCL_ADDRESS_MONITOR_ENABLED` | `false` in `off` mode. In `nginx` mode **delete the line** — the monitor is what notices a dead nginx. |
| `NVCL_ALERT_CHANNEL_KINDS` | `WEBHOOK`, as given — see [Alert channels](https://docs.novacula.io/recipes/self-hosted/email.md#alert-channels). |
| `NVCL_BILLING_ENABLED`, `NVCL_AUTH_OIDC_ENABLED` | `false`, as given. |
| `NVCL_MIMIR_ENDPOINT`, `NVCL_LOKI_ENDPOINT` | `http://127.0.0.1:9009` and `http://127.0.0.1:3100`, as given. |
| `NVCL_ALERT_INCIDENT_FEED_URL` | `NVCL_PUBLIC_URL` plus `/v1/internal/incidents`. Alertmanager refuses loopback receivers, so it's the public URL. |
| `NVCL_EMAIL_SMTP_*`, `NVCL_EMAIL_FROM` | Your SMTP relay, or `NVCL_EMAIL_SMTP_HOST` empty to send no email — see [Account email](https://docs.novacula.io/recipes/self-hosted/email.md#account-email). |
| `JAVA_OPTS` | JVM options, e.g. `-Xmx2g`. |

There is no license key here: you upload the license after the first start.

**4. Put nginx in front of the Hub**

Put the Hub's certificate (leaf followed by intermediates) at `/etc/nginx/tls/hub.crt` and its key at `/etc/nginx/tls/hub.key` (mode `0600`), write the site from [nginx in front of the Hub](https://docs.novacula.io/recipes/self-hosted/proxy-and-tls.md#nginx-in-front-of-the-hub) to `/etc/nginx/conf.d/nvcl-hub.conf` with your `server_name`, then:

```bash theme={null}
nginx -t
systemctl reload nginx
```

Keep the site's `proxy_set_header` lines as they are: the Hub trusts the forwarded headers it receives, so nginx must overwrite them. Every workstation that opens the console resolves the Hub's name through your internal DNS and trusts your CA in its browser.

**5. Start the Hub**

```bash theme={null}
cp /opt/nvcl/nvcl-hub/systemd/nvcl-hub.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable --now nvcl-hub
journalctl -u nvcl-hub -f
```

Once it's ready, both answer `{"status":"UP"}`:

```bash theme={null}
curl -s http://127.0.0.1:9090/actuator/health
curl -s https://hub.example.local/actuator/health
```

The unit runs the Hub as `nvcl` with a read-only file system; the Hub writes nothing but its log, which goes to the journal. On first start it creates its database schema.

**6. Sign in as the super-admin**

Open `https://hub.example.local/` and sign in as the bootstrap super-admin. Change the password in the console, then delete the three `NVCL_AUTH_BOOTSTRAP_USERS_0_*` lines from `hub.env` — later starts never change that user anyway.

The API calls in the next steps need a super-admin access token. Without MFA enrolled for that user:

```bash theme={null}
read -r -p 'email: ' E; read -r -s -p 'password: ' P; echo; export E P
TOKEN=$(jq -n '{email: env.E, password: env.P}' |
  curl -fsS -H 'Content-Type: application/json' --data-binary @- https://hub.example.local/v1/auth/login |
  jq -r '.tokens.accessToken')
unset E P
```

The token is short-lived: repeat the sign-in when a call answers `401`.

**7. Install the license**

A fresh Hub runs a **7-day trial** with one executor and one running node. As the super-admin, open the admin console's **License** page (`https://hub.example.local/admin/license`) and paste or choose the license file you received, `nvcl-license.jwt`, then **Install license**. It takes effect immediately, without a restart. See [License](https://docs.novacula.io/recipes/self-hosted/license.md) for the API and what an expiry does.

**8. Create the organization and an executor key**

As the super-admin, create the organization and its owner:

```bash theme={null}
read -r -s -p 'owner password (8-128 chars): ' OP; echo; export OP
jq -n --arg name '<organization name>' --arg ownerEmail '<owner email>' \
    '{name: $name, ownerEmail: $ownerEmail, ownerPassword: env.OP}' |
  curl -fsS -H @<(printf 'Authorization: Bearer %s\n' "$TOKEN") -H 'Content-Type: application/json' --data-binary @- \
    https://hub.example.local/v1/organizations
unset OP
```

Or let the owner register in the console, if `NVCL_WHITELIST_ENTRIES` admits them (with an SMTP relay set, they confirm their address by email first). The owner then signs in and creates an executor [API key](https://docs.novacula.io/docs/executors/api-keys.md). Its `exc_…` value is shown once; one key per Agent host is the easiest to revoke.

**9. Register the Agent release**

`install.sh` and Agent self-updates take the Agent from the latest registered release. Register it with its URL **under your mirror** — written exactly as the Agents' `[sources] mirror` will be — and the sha256 from its sidecar in the verified kit, not from the mirror:

```bash theme={null}
cdn=nvcl-prod-releases.fra1.cdn.digitaloceanspaces.com
v=<release>
mirror=<the Agents' mirror, e.g. file:///srv/nvcl-mirror>
sha=$(cut -d' ' -f1 /root/nvcl-kit/nvcl-platform-$v/mirror/$cdn/agent/$v/nvcl-agent-$v-linux-x64.tar.gz.sha256)
jq -n --arg v "$v" --arg url "$mirror/$cdn/agent/$v/nvcl-agent-$v-linux-x64.tar.gz" --arg sha "$sha" \
    '{kind: "agent", version: $v, artifact: {downloadUrl: $url, sha256: $sha}}' |
  curl -fsS -H @<(printf 'Authorization: Bearer %s\n' "$TOKEN") -H 'Content-Type: application/json' --data-binary @- \
    https://hub.example.local/v1/releases
```

## Agent hosts

On each Agent host, with your CA already in the OS trust store:

**1. Run the installer without starting the Agent**

```bash theme={null}
read -r -s -p 'executor key: ' NVCL_TOKEN; echo; export NVCL_TOKEN
curl -fsSL https://hub.example.local/install.sh |
  NVCL_CA_FILE=/usr/local/share/ca-certificates/nvcl-ca.crt NVCL_SKIP_SYSTEMD=1 \
  NVCL_NAME='<executor name>' sh
unset NVCL_TOKEN
```

The key is read without echo and passed in the environment, so it stays out of the shell history and the process list.

* `install.sh` downloads the Agent from the mirror URL you registered and checks it against the registered sha256, so a wrong registration fails here rather than at the first self-update.
* `NVCL_CA_FILE` is copied to `/etc/nvcl/hub-ca.pem` and written to `[tls] ca_file`, because the Agent's Java runtime doesn't read the OS store. See [CA trust](https://docs.novacula.io/recipes/self-hosted/proxy-and-tls.md#ca-trust).
* `NVCL_SKIP_SYSTEMD=1` installs the Agent and writes its config **without starting it**. Started with default settings, it would run the Cloud proxy mode and try to download its proxy from the internet, which a closed network drops.

**2. Edit agent.toml**

`install.sh` wrote `/etc/nvcl/agent.toml` with the tables `[agent]`, `[source]`, `[hub]`, `[logging]`, and `[tls]`. The Agent refuses to start on an unknown key or a repeated table, so edit the file rather than appending a second `[agent]`.

Under the existing `[agent]` line, add the address the Hub, the peers, and your clients reach this host on. A private IPv4 is accepted only when written here:

```toml theme={null}
advertised_host = "10.20.0.7"
```

Then append, with `mode` equal to the Hub's `NVCL_PROXY_MODE`:

```toml theme={null}
[proxy]
mode = "off"   # or "nginx"

[sources]
mirror = "file:///srv/nvcl-mirror"   # or https://files.example.local/nvcl-mirror
```

An Agent offers Bitcoin, Ethereum, and Tron by default. Add the `[[sources.checkpoint]]` and `[[sources.snapshot]]` entries this host's nodes need — see [Nodes](#nodes) below and [Agent sources](https://docs.novacula.io/recipes/self-hosted/agent-sources.md).

The file holds the executor key: keep it `0600` (`chmod 600 /etc/nvcl/agent.toml` if your editor replaced it).

**3. Register and start the Agent**

```bash theme={null}
/opt/nvcl/agent/bin/agent install --config /etc/nvcl/agent.toml
systemctl restart nvcl-agent
```

`agent install` registers and starts the unit; the restart applies the file to an Agent that was already running. After a later edit of `agent.toml`, `systemctl restart nvcl-agent` is enough.

**4. Check the Agent**

```bash theme={null}
systemctl status nvcl-agent --no-pager
journalctl -u nvcl-agent -n 50 --no-pager
```

The executor appears in the console under its `NVCL_NAME` once it has synced — the Hub creates it on the first sync with the key. During the trial only the first executor is admitted.

> [!WARNING]
>
> A reinstall with `NVCL_FORCE=1` rewrites `agent.toml` from scratch. Run it with `NVCL_SKIP_SYSTEMD=1` as above and apply your edits again before the restart.

## Nodes

Create nodes in the console on the executor that should run them, as in [Deploy a node](https://docs.novacula.io/docs/nodes/deploy-a-node.md). What each chain needs on its host first:

* **Ethereum** (`geth`, `besu`, or `reth` with Lighthouse) — Lighthouse needs a checkpoint endpoint you name per network in [`[[sources.checkpoint]]`](https://docs.novacula.io/recipes/self-hosted/agent-sources#ethereum-checkpoint): a beacon node of your own, or one public provider you allow through the firewall. A `reth` node on `mainnet` also needs a [`reth` snapshot manifest](https://docs.novacula.io/recipes/self-hosted/agent-sources#reth-snapshot). On `sepolia` and `hoodi` run `geth` or `besu`.
* **Bitcoin** (`bitcoind`) — nothing beyond the mirror.
* **Tron** (`java-tron`) — a snapshot archive you supply, one [`[[sources.snapshot]]`](https://docs.novacula.io/recipes/self-hosted/agent-sources#tron-snapshots) entry for a Full node and one with `variant = "lite"` for a Lite node. For [event streaming](https://docs.novacula.io/docs/chains/tron.md), point the node's `event-plugin-config` at a MongoDB you run.

## RPC exposure

### Mode `off`: direct ports

Give each node **Direct** [RPC exposure](https://docs.novacula.io/docs/nodes/rpc-exposure.md) and always fill in **Restrict access (CIDR)** with the sources allowed to reach it — an empty list leaves the port open to everyone. On an Ethereum node, set both the execution client and Lighthouse to **Direct**: the Agent opens the port only when every RPC role of the node is direct. In the API that's the node spec's `exposure`:

```json theme={null}
"exposure": {
  "rpc": { "mode": "direct", "allowFrom": ["10.20.0.0/16"] }
}
```

The Agent turns the allow-list into nftables rules and reports the host port on the node's **RPC** tab. For HTTPS, terminate it on an nginx you run — see [TLS in front of a direct port](https://docs.novacula.io/recipes/self-hosted/proxy-and-tls.md#tls-in-front-of-a-direct-port).

### Mode `nginx`: pools

On each Agent host, include the Agent's nginx file once inside the `http` block of `/etc/nginx/nginx.conf`, then `nginx -t && systemctl reload nginx`:

```nginx theme={null}
include /var/lib/nvcl/nginx/nvcl.conf;
```

With AppArmor or SELinux, let nginx read `/var/lib/nvcl`.

Then, for each [pool](https://docs.novacula.io/docs/nodes/pools.md):

**1. Create the pool and add members**

Create the pool in the console and add its member nodes. A member needs a verified advertised address inside `NVCL_NETWORK_PRIVATE_CIDRS`.

**2. Upload its certificate**

The Hub generates the pool's key and CSR; your CA signs the CSR; you upload the full chain on the pool's **Certificate** tab. Automatic issuance isn't available. A chain up to your private CA shows the `private_ca` note — clients must trust that CA.

**3. Publish DNS**

Point the pool domain at its members' advertised addresses in your internal DNS. The pool shows **Create these records in your DNS**; the Hub doesn't check them.

**4. Check every member serves**

Check the pool's per-executor edge status, `edgeHosts` in `GET /v1/organizations/<organization id>/pools/<pool id>`: a member missing there, one with an `error`, or one whose `reportedAt` has stopped moving is the host to check.

**5. Decide who may call it**

A new pool also answers callers without a key, under its default guest limits. To serve key holders only, create client keys on the pool's **Access** tab, then set its **Access policy** to **key holders only** — the Hub refuses to withdraw guest access while the pool has no live key. See [Access](https://docs.novacula.io/docs/nodes/pools.md#access).

A one-member pool is how a single node gets a domain with keys and rate limits. [Pools behind nginx](https://docs.novacula.io/recipes/self-hosted/proxy-and-tls.md#pools-behind-nginx) covers what the Agent writes and how it reloads nginx.

## Related

* [Upgrade](https://docs.novacula.io/recipes/self-hosted/upgrade.md) — install the next release.
* [Proxy modes and TLS](https://docs.novacula.io/recipes/self-hosted/proxy-and-tls.md) · [Agent sources](https://docs.novacula.io/recipes/self-hosted/agent-sources.md) · [License](https://docs.novacula.io/recipes/self-hosted/license.md)
* [Provision on bare metal](https://docs.novacula.io/recipes/provision-on-bare-metal.md) — the Agent's files, CLI, and `agent.toml` reference.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.