Environment Variables

VariableDefaultDescription
RELAY_LISTEN_ADDR0.0.0.0API server bind address
RELAY_PORT43321P2P relay port
RELAY_API_PORT3000API server port
RELAY_DATA_DIR./dataData directory
RELAY_ANONYMITYpartialAnonymity level: none, partial, blind, multi-hop
RELAY_DISABLE``Comma-separated modules to disable: guestbook, security, instances
RELAY_PEERS``Comma-separated peer relay URLs
RELAY_NODE_URL``Public URL of this relay (advertised to peers)
RELAY_SYNC_INTERVAL_SECS120Gossip sync interval
DATABASE_URL``MySQL connection string (empty = in-memory only)
RUST_LOGinfoLog level: error, warn, info, debug, trace

Feature Toggles

Disable specific modules at startup:

docker run -e RELAY_DISABLE=guestbook,security ...

Available modules: instances, guestbook, security. The health endpoint is always available.

Configuration File

Relay also reads from config.json in the data directory. This file is auto-created on first run with default values.