An operator-owned Spry pairing and STUN/TURN service, private Wok Nostr relay and Wildbloom encrypted-blob store, without Archipelago. KithMoot remains the calling application. No ForgeSworn account, telemetry, public administrator or anonymous credential issuer is installed.
Status: deployment candidate, not a production-qualified release. Spry, Wok and Wildbloom default to pinned public GHCR image digests. A live public host, cross-network TURN and physical-device acceptance are separate qualification steps.
The private community architecture and setup recipe covers independently owned nodes, overlapping KithMoot rooms, browser guests, Wildbloom and Vennel, and the work toward encrypted rooms that can survive losing a host or provider.
- Linux x86-64 with Docker and the Compose plugin. For native ARM64 operation,
supply an ARM64 build of Wildbloom via
WILDBLOOM_IMAGE. - A public IPv4 address assigned to a host interface and free ports. The profile uses Linux host networking for the native TURN sockets.
- DNS A records for
relay.example.organdturn.relay.example.orgpointing to the host's public IPv4, using names you control. TCP 80 and 443, UDP/TCP 3478, TCP 5349 and UDP 49160–49191 must reach the host. Outbound UDP is still required when clients use TCP or TLS. - An owner Nostr public key and the Nostr relays the owner deliberately uses.
- OpenSSL for the local bootstrap certificate.
- Python 3, which the
setup,verifyandinitcommands run on the host.
./bin/forgesworn-node setupThe guided setup asks for one hostname, the owner npub or hex key, the owner's Nostr relays and an email for certificate notices. It can detect the public IPv4 with your permission, checks DNS, generates private state, starts the service, obtains a trusted certificate and verifies the public restrictions, Wok relay information and TURNS listener. It is safe to resume after correcting a failed step.
The ACME command registers or uses the configured Certbot account and accepts
its terms. It opens no dashboard. The one-shot Certbot container uses Linux
DAC_OVERRIDE to access its mounted state while the operator's directories
stay private at mode 0700. Certificate replacement restarts Spry and closes
active TURN allocations.
Leave ADMIN_BIND=127.0.0.1 to administer through the SSH tunnel printed at the
end, or set the host's VPN address and restrict that address/port in the host
and VPN firewalls. Clients never need the admin listener. Do not expose it
publicly.
The advanced .env file is written with mode 0600. Normal operators do not need
to edit allocation limits, origins or image settings. Do not use
SPRY_LOCAL_TEST=true outside generated local fixtures.
For unattended setup, the same command accepts --public-host, --public-ip,
--owner-key, --control-relays, --acme-email and --non-interactive.
Use ./bin/forgesworn-node verify to repeat the endpoint checks. The TLS/443
probe requests a STUN Binding response using the TURN hostname. Prove media
relay with an authenticated call from a separate network.
On a fresh Linux host, the private managed-room option runs the KithMoot room
supervisor, wok-roomd, Spry and Wildbloom through the standalone gateway.
Use Docker Buildx and Compose 2.24.4 or later. Build a private bundle for the
host architecture using the KithMoot release builder, then use the bundle path
and the manifestSha256 value it prints. The local image build checks the
manifest and every copied file before running the bundle. Verify the bundle's
provenance before choosing its digest. KithMoot bundle builder
./bin/forgesworn-node setup --room-bundle /path/to/bundle --room-bundle-sha256 MANIFEST_SHA256
./bin/forgesworn-node verify
./bin/forgesworn-node pairOpen the one-use pairing link with the owner signer in KithMoot. OWNER_KEYS
authorises Wildbloom uploads, while the local pairing establishes the room
owner. The managed route uses the node's own relay and prompts for no public
Nostr control relays. verify checks the room API's public readiness, the Wok
WebSocket and TURNS on 443. Use an admitted call to verify media.
Use the dedicated gateway so the certificate covers both the room hostname
and the TURN hostname. Managed Spry advertises both the direct TLS listener
and TURNS on 443. Set SPRY_RELAY_PORTS in .env before setup based on expected
call size and open that UDP range on the host and provider firewalls. The
managed supervisor derives its allocation capacity from that range. Settings
include ROOM_MAX_ROOMS, ROOM_STORAGE_BYTES and ROOM_MIN_FREE_BYTES. The
supervisor records them at initialisation along with the node identity. Resume
a failed setup with the same settings. After installation, up, restart, renew
and backup select the saved profile. Backups include the managed room ledger,
Wok room data and Wildbloom. For recovery, retain the matching verified bundle
and a private copy of .env with the original hostname, IPv4 and room settings.
Managed rooms use their own device grants and room stores. KithMoot's existing-room move flow is a separate client operation. Wildbloom is owner storage in this profile. Managed room attachments and Vennel protected rooms are separate integrations. Private community setup recipe
For a home node behind CGNAT, the opt-in Link gateway publishes the room API, Wok and Spry TURN/TLS on TCP 443 through a paired reachable edge. The home node keeps the room state and TLS keys. Home node setup · Room and call capacity · Five-caller recovery measurements
Docker hosts already serving other HTTPS sites can use --shared-proxy. This
keeps Caddy on public 80/443, binds the node's public HTTP gateway to
127.0.0.1:9080, and adds an SNI-only route for turn.PUBLIC_HOST to Spry's
TLS listener. Other Caddy sites stay on their existing TLS path. The shared
profile defaults to TURN 3479, TLS 5350, relay ports 49500–49531 and Wildbloom
127.0.0.1:3743; change those values if the host already uses them. Open the
selected TURN UDP/TCP and relay UDP ports in both host and provider firewalls.
The direct TLS port needs no public rule: Caddy reaches it over the host's own
public address and external access remains through TLS/443. TLS/443 still
requires outbound UDP for the peer connections it relays.
Render caddy/forgesworn-node.Caddyfile.template with PUBLIC_HOST and import
it from Caddy. Render caddy/layer4-turn.route.template with PUBLIC_HOST,
PUBLIC_IP and SPRY_TLS_PORT, then insert it inside the
existing servers :443 layer4 listener wrapper, before Caddy's normal tls
wrapper; this requires Caddy's layer4 plugin. Validate the complete Caddy
configuration and reload it. Do not replace an existing layer4 configuration or
its other routes. The public site and turn. site each need their own Caddy
certificate. Spry's direct TLS URL is omitted in this profile because that
certificate is for the TURN name; the SNI-proxied TLS/443 URL remains. Caddy's
existing ACME account and terms are reused; shared setup needs no separate ACME
email and does not run Certbot.
Install caddy/forgesworn-node-certs.service and .timer, adjust the unit's
/opt/forgesworn-node path if needed, then enable the timer. The service runs
caddy/sync-certs.sh as root to copy both certificate pairs out of Caddy's
private store and restarts Spry and the gateway after copying changed files.
Run ./bin/forgesworn-node sync-certs once after Caddy has issued both
certificates, then ./bin/forgesworn-node verify. setup --shared-proxy also
runs this certificate step. Certificate replacement closes active TURN
allocations, as in the dedicated profile.
This is shared-host operation, not machine isolation: the containers share the host kernel, network, firewall and capacity with every other tenant. Host networking remains in use. Keep the owner UI on loopback or a restricted VPN address and review host/provider logging separately.
Open the owner URL through the private administration path and choose
Pair with KithMoot. Public TCP 443 routes turn.PUBLIC_HOST to Spry's TURN
TLS listener and PUBLIC_HOST only to these signed API paths:
- pairing claim and removal;
- room grants, device registration, vouching and removal;
- short-lived credentials and peer registration.
PUBLIC_HOST/events is the Wok WebSocket endpoint. Every room read and write
requires NIP-42 authentication as an operator-listed keeper or as a guest with
a current signed room grant. Its unauthenticated NIP-11 document names no
keeper or guest. Ordinary guest grants cover room text and presence, not calls,
new invitations, rekeys or protected MLS.
Wildbloom accepts signed uploads and mirrors from owner keys at /upload and
/mirror, plus signed listing at /list/<pubkey>. Blob downloads by SHA-256
need no token, as Blossom intends. Uploads are capped at 256 MiB and total
storage at 10 GiB. Direct HTTPS mirrors accept only publicly reachable sources;
loopback origins are refused. Discovery and checkout remain closed.
The public gateway returns 404 for the owner UI, owner statistics, status and
anonymous public-credential path. SPRY_PUBLIC remains off.
For a managed-room node, run ./bin/forgesworn-node admin from the node
operator's terminal and open the printed link. The dashboard listens on
127.0.0.1:8788. For a remote Linux node, forward the same port with
ssh -L 8788:127.0.0.1:8788 <node> and start the dashboard in that SSH
terminal. The link grants operator access for the life of the dashboard.
The service pages show room and device counts, Spry allocations and transport settings, Wok relay connections and storage, Wildbloom quota and upload limits, and the gateway's installed HTTPS certificate. Run checks tests the local services for the selected profile. On a Link home node it checks room identity, the Wok WebSocket and TURN/TLS through the loopback Link gateway. The Gateway and Network & privacy pages show the home adapter’s paired-edge state, active streams, capacity and refusals when its status socket is available. The edge has its own counters. Public reachability requires a check from a separate network. Link setup and status
The Network & privacy page takes a local snapshot of host routes and the default DNS interface, Tor process and SOCKS handshake, node network mode and published bindings. It shows the fields in unsigned gateway responses and the configured log limits. The gateway check uses the node's loopback HTTPS listener and records field names only. On the managed profile, the unsigned room status can reveal pairing and room, device and pending-operation counts. Wildbloom health can reveal blob counts, stored bytes and quota.
Host route lookups identify the interfaces selected for those sample destinations. Measuring actual Docker Internet egress, client DNS and WebRTC routing, upstream NAT filtering, and public reachability requires an independent observation point. The page uses no public IP lookup service. Docker Desktop networking · NAT behaviour discovery · WebRTC IP handling
The local Tor check reports process and SOCKS availability. Tor circuit bootstrap needs separate evidence. Spry's UDP paths are separate from Tor. Tor transport overview
Each service page shows container health, uptime and resource use. A restart requires confirmation. Room management, Spry and Wok restart together. On the local Docker Desktop stack, Wildbloom supplies the shared network, so restart it with the stack.
./bin/forgesworn-node status
./bin/forgesworn-node restart
./bin/forgesworn-node renew
./bin/forgesworn-node downRun renew from a host timer in the dedicated profile. The shared profile uses
its Caddy certificate timer. Both restart the affected services when certificate
files change. For Link home, use your DNS-01 client, then run
./bin/forgesworn-node install-tls --if-idle FULLCHAIN KEY. Exit 75 defers
installation when TURN allocations are active or their count is unavailable.
Retry between calls and allow time before the installed certificate expires.
Matching files leave active allocations running on all three profiles. If a
restart fails, rerun the certificate command for your profile to finish it.
Link home certificate instructions
The default Spry image is pinned to the 0.5.1 prerelease. To adopt this default on an
existing installation, copy SPRY_IMAGE from .env.example into .env and run
./bin/forgesworn-node up to recreate the service. Schedule the upgrade between
calls.
state/ contains the TURN root secret, private TLS material and ACME state,
plus the non-secret generated Wok configuration. Pairing state is in
spry-state, Wok events and grant authority in wok-state, and encrypted
blobs and their metadata in wildbloom-state. Keep all three volumes and the
host directory private and include them in every backup. Compose secrets are
mounted into containers rather than placed in their inspected environments.
Spry and Wok run as uid 10001 with read-only roots and no capabilities. The
state directories are mode 0700. Secret and private-key files beneath them are
mode 0644 so Docker's bind-mounted secrets remain readable by that uid; do not
broaden the containing directory permissions. Host networking reduces
network-namespace isolation; the host firewall remains an exposure boundary.
Spry handles connecting and peer addresses, credential identifiers, allocation state and forwarded encrypted packets. Pairing state and public keys persist. Wok stores public keys, signed grants, event metadata and whatever clients send; its relay grant does not replace KithMoot's invitation or room-key admission. Wildbloom stores ciphertext, blob hashes and signing keys; anyone with a hash can request the ciphertext. None of these services receives room media keys.
Nginx access logs are disabled, and the gateway logs only what stops it
starting. Its other error lines name the connecting address: to see them while
debugging, set error_log in gateway/nginx.conf (nginx.shared.conf in the
shared profile) to warn and run ./bin/forgesworn-node restart.
Each container's output is kept in one file of at most 1 MiB, which
compose.yaml sets whatever the host's Docker default is, and it goes when the
container is removed. The cap limits how much is kept; this bundle makes no
claim about what Spry, Wok and Wildbloom write there.
Host, journald, crash, VPN and provider logging require separate inspection.
This is metadata minimisation, not a claim of no metadata or no applicable law.
./bin/forgesworn-node backup
./bin/forgesworn-node restore [backup/forgesworn-node-YYYYMMDDTHHMMSSZ.tar.enc]Backup stops the writers, archives state/ and the selected profile's data
volumes, then encrypts and authenticates the result with an operator passphrase.
At a terminal the passphrase is hidden and backup asks for it twice. It reaches
OpenSSL through a pipe, so neither the passphrase nor the keys derived from it
appear on a command line. Keep the encrypted archive, its .meta file and a
separately stored passphrase for off-host recovery. Restore uses the profile selected by the installation's
.env. It authenticates and stages the archive before it prompts to stop the
node (FORGESWORN_RESTORE_YES=1 confirms unattended restores).
Allow spare space in Docker for the extracted candidate and in backup/ for
the decrypted archive or an uncompressed copy of the original data, whichever
is larger. With writers stopped, restore saves and checks the original host and
volume data. It keeps that copy until Compose reports the replacement healthy.
A failed restore rolls back and restarts the previously running services.
Backup, restore, certificate changes and operator restarts take the same
installation lock. If another operation holds it, wait for that command to
finish and retry. After an interrupted certificate installation, finish
renew (dedicated), sync-certs (Caddy) or install-tls (Link home) before
taking another backup.
You can still restore a known-good archive once the certificate writer exits.
After a power cut or a failed rollback, keep the installation, its Docker
volumes and backup/.restore/ together. Run the following command with the
same Compose project and profile before starting the node or taking another
backup. Recovery can be retried after freeing space or restoring Docker access.
./bin/forgesworn-node restore --recoverTest recovery with your room and storage clients after restoring.
acceptance/ holds two end-to-end checks for a disposable default-profile
node set up on the same host with --self-signed. They reach it through
127.0.0.1, trust its certificate in state/tls/ and expect the Compose
project name forgesworn-node.
api.mjscreates and claims a pairing, renews a TURN credential across a Spry restart, then removes the pairing and expects refusal.wildbloom.mjsuploads and downloads a blob, checks closed routes and refusals, and downloads the blob again after a Wildbloom restart.
Both sign as a fixed test owner key (01 repeated, or OWNER_SECRET_KEY for
api.mjs), so the node's owner must be that key. They restart containers
through the Docker socket. Never run them against a node people use.
npm ci --ignore-scripts --prefix acceptance
node acceptance/api.mjs
node acceptance/wildbloom.mjsImport nix/ and set the same inputs. For example:
services.forgesworn-node = {
enable = true;
publicHost = "relay.example.org";
publicIp = "203.0.113.10";
ownerKeys = [ "1b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f" ];
controlRelays = [ "wss://relay.primal.net" ];
acmeEmail = "operator@example.org";
acceptAcmeTerms = true;
};The module runs the default profile only. Its bundle leaves out the managed room, Link home and existing Caddy host files, so set those profiles up from a checkout as described above.
The module enables Docker, applies the public firewall ports and reuses the
Compose bundle and backup commands. Its Nix store bundle uses an explicit file
allowlist: local .git, state/ and backup/ content is never copied. It
creates no Nostr secret and accepts no ACME terms unless acceptAcmeTerms = true.
Keep adminBind on loopback or a VPN address. The module selects Docker 29:
NixOS 25.11's default Docker 28 package is now refused by Nixpkgs as insecure.
A complete NixOS 25.11 machine configuration, its assertions, firewall and
service commands evaluate successfully. The generated ARM64 bundle builds with
the required filenames and no operator state. The module has not been exercised
on a NixOS host. Docker on Linux is the tested deployment path.