bitxhub/config/bitxhub.toml

54 lines
1.1 KiB
TOML
Raw Normal View History

2020-03-29 21:32:01 +08:00
title = "BitXHub configuration file"
solo = false
[port]
grpc = 60011
gateway = 9091
pprof = 53121
2020-05-15 15:17:50 +08:00
monitor = 40011
2020-03-29 21:32:01 +08:00
[pprof]
enable = true
ptype = "http" # including two types: runtime (recommended for use during the development phase) and http
mode = "memory" # only required for runtime ptype, including two modes: cpu、memory
duration = "1m" # only required for runtime ptype, every duration will generation a profile.
2020-03-29 21:32:01 +08:00
2020-05-15 15:17:50 +08:00
[monitor]
enable = true
2020-03-29 21:32:01 +08:00
[gateway]
allowed_origins = ["*"]
2020-11-05 11:04:53 +08:00
[ping]
enable = false
duration = "2s"
[security]
enable_tls = false
pem_file_path = "certs/server.pem"
server_key_path = "certs/server.key"
2020-03-29 21:32:01 +08:00
[log]
2020-03-30 12:59:22 +08:00
level = "info"
2020-03-29 21:32:01 +08:00
dir = "logs"
filename = "bitxhub.log"
2020-03-30 12:59:22 +08:00
report_caller = false
2020-03-29 21:32:01 +08:00
[log.module]
2020-03-30 12:59:22 +08:00
p2p = "info"
consensus = "info"
executor = "info"
2020-03-29 21:32:01 +08:00
router = "info"
api = "info"
coreapi = "info"
2020-10-19 23:39:05 +08:00
storage = "info"
2020-03-29 21:32:01 +08:00
[cert]
verify = true
[order]
2020-10-15 21:07:06 +08:00
plugin = "plugins/raft.so"
[executor]
type = "serial" # opensource version only supports serial type, commercial version supports serial and parallel types