Repository navigation
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
55 lines (43 loc) · 2.25 KB
/
Copy pathconfig.example.yaml
File metadata and controls
55 lines (43 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# SmartNet seeder configuration (copy to config.yaml).
# A default config.yaml is also auto-created on first run.
# Where seeded blobs + state are stored (created if missing).
data_dir: ./smartnet-seed-data
# Disk budget for seeded app blobs, in gigabytes.
storage_limit_gb: 5.0
# --- Netfory messenger media seeding (v1.5.0) ---
# Dedicated budget (GB) for chat media (photos/audio/files/video ≤ 500 MB) in a
# SEPARATE store (<data_dir>/media-blobs) with its own iroh endpoint — never
# mixed with the dApp budget above. 0 = off. e.g. 5 = 5 GB. When usage exceeds
# 90 % the oldest 50 % is evicted. Clients announce media via POST /media/announce.
media_storage_gb: 0
# HTTP trackers to learn the app directory from and announce to.
trackers: []
# Where future seeding rewards should go. Provide EITHER an address ...
reward_address: ""
# ... OR a passphrase to derive the address from (SmartNet wallet scheme).
reward_passphrase: ""
# Seconds between directory refresh + announce heartbeats.
poll_interval_secs: 30
# Hide this node's direct IP (relay-only; no LAN mDNS advertise/resolve).
relay_only: false
# Contribution metrics: HTTP /metrics (JSON) + status page on this port (0 = off).
metrics_port: 9466
# How often to print a one-line seeding summary to the log (seconds).
metrics_interval_secs: 300
# How often to garbage-collect unused blobs (old versions / abandoned
# downloads) from the store, keeping only currently-seeded apps (seconds).
gc_interval_secs: 600
# --- SmartNet public DHT bootstrap node (serverless discovery infrastructure) ---
# Run a Mainline DHT node in SERVER mode on a fixed UDP port. This makes the
# seeder a reachable bootstrap node so clients/providers behind NAT or with
# closed UDP egress can still join the DHT through SmartNet infrastructure —
# independent of n0/n1 and public BitTorrent routers. Default ON.
dht_enabled: true
# UDP port for the DHT bootstrap node. OPEN THIS IN THE FIREWALL (inbound UDP).
# Then bake "<public_ip>:<dht_port>" into:
# • client: env SMARTNET_DHT_BOOTSTRAP=<public_ip>:6881
# • provider: config.yaml network.dht_bootstrap: ["<public_ip>:6881"]
# (The address 116.202.32.250:6881 is already baked into client/provider defaults.)
dht_port: 6881
# 0 - disabled, 10GB for media content
media_storage_gb: 10