MoqIrohDedicatedListenerConfig

A DEDICATED iroh listener identity for one input/output: its own key, allow-list and relay mode on its own endpoint, instead of riding the shared per-instance endpoint (the iroh bool). Advanced/multi-tenant — most users want the shared endpoint. Note the default-closed policy applies: relay_mode "default" with no allow-list refuses to start.

Field

Type

Repeated

Description

slot

int32

Pool slot (>= 1; 0 is reserved for the shared endpoint). Inputs/ outputs naming the same slot share the listener (first configuration wins; later mismatching configs are rejected).

secret_key_file

string

Identity key file (load-or-generate, hex, mode 0600) — a stable NodeId across restarts. Empty = fresh unpersisted identity per start.

relay_mode

string

"default" (relays + discovery) or "disabled" (direct paths only).

allowed_peers

string

Verified remote NodeIds (64-char hex) allowed to connect.

allow_any_peer

bool

allowed_peers_file

string

Path to an allow-list file (one hex NodeId per line, # comments).

relay_urls

string

Self-hosted relay server URLs (https) — see IrohEndpointConfig.relay_urls for semantics.

Member of