1 # The Blake Swap relay: nostrino gateway rendezvous and tunnel traffic, plus the swap market.
2 # It is a second torly instance, separate from the general relay on 3336, because the two serve
3 # different policies and neither should be able to affect the other's limits.
4 5 TORLY_LISTEN=127.0.0.1
6 TORLY_PORT=3337
7 TORLY_DATA_DIR=/home/mleku/.local/share/torly-swap
8 TORLY_RELAY_URL=wss://swaprelay.smesh.lol/
9 TORLY_APP_NAME="swaprelay.smesh.lol"
10 TORLY_DESCRIPTION="Blake Swap relay - nostrino gateway rendezvous and swap market"
11 TORLY_CONTACT=https://mleku.dev
12 # Where a back-end operator writes to have its public key added to the policy. This is the
13 # address published as the NIP-11 contact.
14 TORLY_CONTACT_EMAIL=blake@smesh.lol
15 16 # The policy carries the per-kind rules, including NIP-42 on the kinds only the gateway may
17 # publish. The global gate stays off so wallets can send their ephemeral frames without an
18 # authentication round trip.
19 TORLY_AUTH_REQUIRED=false
20 TORLY_POLICY_FILE=/etc/torly/policy/swaprelay.json
21 22 # Nothing on this relay serves blobs.
23 TORLY_BLOSSOM_ENABLED=false
24 25 # Tunnel frames are NIP-44 ciphertext of up to the tunnel MTU; 128 KiB covers the default 32 KiB
26 # frames with base64 expansion and room to raise the MTU.
27 TORLY_MAX_EVENT_BYTES=131072
28 29 # Inbound is capped, delivery is not. The ceiling is the host's inbound line: a flood is dropped
30 # before it is parsed and a connection that keeps exceeding it is closed.
31 TORLY_INBOUND_BYTES_PER_SEC=16777216
32 TORLY_ABUSE_CLOSE_AFTER=100
33 34 # A client asks for its stream once; a marketplace reader asks for listings at a poll rate, not
35 # in a loop. Over-budget requests get no answer.
36 TORLY_QUERY_PER_SEC=10
37 TORLY_QUERY_BURST=20
38 39 # 0 = deliver at line rate. Set a value to give one syncing wallet a known share of the uplink.
40 TORLY_OUTBOUND_BYTES_PER_SEC=0
41 42 TORLY_MAX_CONNECTIONS=512
43 TORLY_CONN_WORKERS=64
44 TORLY_VERIFY_WORKERS=2
45 TORLY_MAX_SUBS_PER_CONN=32
46 TORLY_MAX_FILTERS=8
47 TORLY_MAX_LIMIT=2000
48 TORLY_QUERY_LIMIT=2000
49 TORLY_EXPIRY_INTERVAL=60
50 TORLY_LOG_LEVEL=info
51