IrohDedicatedListenerSettings interface

A dedicated iroh listener identity (own key/allow-list/relay mode on its own endpoint) for a single MoQ input/output. Note the default-closed policy: relayMode 'default' (publicly reachable) with no allow-list refuses to start.

Signature:

export interface IrohDedicatedListenerSettings

Properties

Property Type Description

allowAnyPeer?

boolean

(Optional) Explicit opt-in to accept ANY peer.

allowedPeers?

string[]

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

allowedPeersFile?

string

(Optional) Allow-list file (one hex NodeId per line, # comments).

relayMode?

'default' | 'disabled'

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

relayUrls?

string[]

(Optional) Self-hosted relay server URLs (https) — uses YOUR relays and disables n0’s discovery. Mutually exclusive with relayMode 'disabled'.

secretKeyFile?

string

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

slot

number

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).