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
55
56
57
58
59
60
61
## Example: group_id = 0
= 0
## This will be random string, and you can change.
## if need use secret nonce or seed, it will be useful.
= "{}"
## If custom db storage path. uncomment it.
## Default is `$HOME`, `./` when dev.
## Example: db_path = "./"
= "./.tdn"
## App Permission.
## If set true, it is permissioned, and only stable connection;
## if set false, it is permissionless, has stable connection and DHT(p2p) connection.
## Default is false.
## Suggest: if want a permissioned DApp, use `permission = false` and `only_stable_data = true`.
= false
## If only receive stable connection's data.
= false
## P2P listen address, default is 0.0.0.0:7364, uncomment below to change.
= "0.0.0.0:7364"
## P2P transport include: quic, tcp, udt, rtp, default is quic.
= "quic"
## P2P bootstrap seed IPs.
## Example: p2p_blocklist = ["1.1.1.1:7364", "192.168.0.1:7364"]
= []
## P2P Blocklist(IP), uncomment below to change.
## Example: p2p_blocklist = ["1.1.1.1", "192.168.0.1"]
#p2p_blocklist = []
## P2P Allowlist(ID), uncomment below to change.
## Example: p2p_allow_peer_list = [
## "55fdd55633c578c7f2fb3e299f3d3bc88f8a9908df448f032c1b5d29db91e8c4",
## "b9f86efea43016debe9436c2d98fa273789ee81b511bf623e16de0b4c83176a6",
## ]
#p2p_allow_peer_list = []
## P2P Blocklist (ID), uncomment below to change.
## Example: p2p_block_peer_list = [
## "55fdd55633c578c7f2fb3e299f3d3bc88f8a9908df448f032c1b5d29db91e8c4",
## "b9f86efea43016debe9436c2d98fa273789ee81b511bf623e16de0b4c83176a6",
## ]
#p2p_block_peer_list = []
## RPC HTTP listen address, default is 127.0.0.1:7365, uncomment below to change.
## Example: rpc_http = "127.0.0.1:7365"
= "127.0.0.1:7365"
## RPC WS listen address, default closed. if need, uncomment below to change.
## Example: rpc_ws = "127.0.0.1:7366"
= "127.0.0.1:7366"
## RPC Service index html body. if has, set path, if not, comment it.
## Example: rpc_index = "/var/www/html/index.html"
#rpc_index = "/var/www/html/index.html"