# Copy this file to .env and fill in what you need — see README.md for the full explanation of each.
# Nothing here is required: an empty/missing .env runs a free, open, unregistered relay exactly like before.

# --- basics ---
PORT=8820
# HOST=0.0.0.0

# --- identity: lets a relay refuse to let anyone JOIN as a nodeId someone else already registered ---
# REGISTRY_URL=http://localhost:8830

# --- paid access: charges nodes (never requesters) a periodic USDC fee to JOIN — see README.md's "Paid access".
# Requires REGISTRY_URL above to also be set. Leave ACCESS_FEE_AMOUNT unset/0 to stay free (the default).
# ACCESS_FEE_AMOUNT=2
# ACCESS_FEE_WALLET=04...              # your own MooChedda wallet — this is where payments are sent
# ACCESS_FEE_PERIOD_DAYS=30

# --- where paid-access grants are kept (only used/created when ACCESS_FEE_AMOUNT is set) ---
# RELAY_DATA_DIR=~/.nodofi-relay

# --- directory: lists this relay at REGISTRY_URL/api/relays, so node operators looking for a relay can find it.
# Requires REGISTRY_URL above. RELAY_PUBLIC_URL is the address OTHERS can actually reach this relay at — this
# process has no way to know that on its own (same reasoning as a node's own publicAddress), so it's never
# guessed from a local bind address. Leave it unset to stay out of the directory entirely — anyone can still
# point a node's relayUrl at this relay directly, listed or not. ---
# RELAY_PUBLIC_URL=https://relay.example.com
# RELAY_NAME=My Relay
# RELAY_OPERATOR=Your name or company

# --- point at a self-hosted MooChedda-compatible service instead of the real https://moochedda.com (testing only) ---
# MOOCHEDDA_API=http://localhost:8815
