Files
quantus/asset/config/node.env.tmpl
T
Rob Thijssen 3740bfb520 feat: advertise a public address, optionally
Opening 30333 on the host does not make a node dialable. Behind NAT
libp2p advertises the address it can see -- a 10.x mesh address -- so an
edge port forward delivers packets that no peer ever knows to send.
--public-addr is what closes that gap.

Plumbed as a per-host matrix field rather than a constant, since a
mesh-only node should not advertise anything. The unit takes it as a
bare $VAR so systemd word-splits it: a complete flag becomes two
arguments, empty becomes zero, and one unit serves both cases.

Validate now reports which state a node is in. An undialable validator
mines happily and reports active while contributing nothing back to the
network, which is exactly the class of silent failure the rest of the
validate step exists to catch.
2026-08-31 18:25:39 +03:00

17 lines
915 B
Cheetah

# Rendered by .gitea/workflows/deploy.yaml from the QUANTUS_INNER_HASH Gitea
# secret and rsynced to /etc/quantus-node/node.env (0640 root:quantus-node).
# The rendered file is never committed (generic.md §6).
#
# 32-byte wormhole preimage, 0x-prefixed — the node derives the reward address
# from it and logs that address on startup. Generated by
# script/infra-setup.sh --mint-reward-key.
QUANTUS_INNER_HASH={{QUANTUS_INNER_HASH}}
# Multiaddr other nodes should dial to reach this one, as a complete flag, or
# empty for a node with no public ingress. Behind NAT this is required — libp2p
# would otherwise advertise a 10.x address nobody outside can reach.
# Prefer a /dns4/ name over a literal address so a WAN IP change needs no
# redeploy (architecture public-dns.md uses per-site indirection names).
# --public-addr /dns4/<site-indirection-name>/tcp/30333
QUANTUS_PUBLIC_ADDR={{QUANTUS_PUBLIC_ADDR}}