-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.toml.example
90 lines (82 loc) · 1.89 KB
/
config.toml.example
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# 服务基础路径,存放本地数据库以及配置文件等
# 目录结构:
# root/
# |- bin
# \- voucher
# \- config.toml
# |- certs
# \- server.pem
# \- server.key
# \- client.pem
# \- client.key
# \- dev01.pem
# \- dev01.key
# \- ...
# |- db
# |- scripts
# \- client-cert.sh
# \- server-cert.sh
basedir = "/opt/box/voucher"
[agentservice]
# 服务名称
name = "voucher"
# 服务别名
alias = "server1"
companionname = "companion"
#http
ipandport = "127.0.0.1:19092"
pattern = "/addkey"
# rpc
rpcapi = "127.0.0.1:50502"
# 如果不填该参数,默认查找 ${basedir}/certs/${name}.pem
clientcert = "/opt/box/voucher/ssl/client.pem"
# 如果不填该参数,默认查找 ${basedir}/certs/${name}.key
clientkey = "/opt/box/voucher/ssl/client.key"
[secret]
# 服务器端密钥字节数
secretLength = 40
# 初始化时下载客户端证书一次性密码字节数
passLength = 8
# 授权APP的数量
appNum = 2
[database]
# 如果不提供该参数,默认为 ${basedir}/db
# filePath = ""
# 如果不提供该参数,默认是16
cache = 128
# 如果不提供该参数,默认是16
openFiles = 16
# 如果不提供该参数,默认是 BOX
# prefix = "BOX"
[log]
# DEBUG/INFO/ERROR/FATAL/WARN
level = "DEBUG"
# json/console
encoding = "console"
# 日志存储位置. 如果不提供,默认为 ${basedir}/log
# logPath = ""
# 提供手机APP客户端证书下载
[service]
port = 8966
ip = "0.0.0.0"
# 提供手机端API服务
[api]
port = 9867
ip = "0.0.0.0"
# 以太坊公链节点
[ethereum]
scheme = "ws://localhost:8546"
delayedBlocks = 0
cursorBlocks = 15900
retries = 10
accountPoolSize = 2
blockNoFilePath = "/opt/box/voucher/blockno.txt"
nonceFilePath = "/opt/box/voucher/nonce.txt"
# bitcoin node
[bitcoin]
type = "main"
host = "localhost:8332"
rpcuser="user"
rpcpass="pass"
blockNoFilePath = "/opt/box/voucher/btcBlockno.txt"
confirmations=6