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]
|
2020-09-30 19:19:38 +08:00
|
|
|
enable = true
|
2020-10-21 11:06:17 +08:00
|
|
|
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
|
2020-11-19 10:41:16 +08:00
|
|
|
duration = "30s" # 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]
|
2020-11-18 10:36:12 +08:00
|
|
|
enable = true
|
|
|
|
duration = "15s"
|
2020-11-05 11:04:53 +08:00
|
|
|
|
2020-10-13 10:27:07 +08:00
|
|
|
[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"
|
2020-11-19 10:41:16 +08:00
|
|
|
consensus = "info"
|
2020-03-30 12:59:22 +08:00
|
|
|
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
|
2021-01-25 18:55:02 +08:00
|
|
|
node_cert_path = "certs/node.cert"
|
|
|
|
agency_cert_path = "certs/agency.cert"
|
|
|
|
ca_cert_path = "certs/ca.cert"
|
2020-03-29 21:32:01 +08:00
|
|
|
|
|
|
|
[order]
|
2020-11-19 10:41:16 +08:00
|
|
|
plugin = "plugins/raft.so"
|
2020-10-15 21:07:06 +08:00
|
|
|
|
|
|
|
[executor]
|
|
|
|
type = "serial" # opensource version only supports serial type, commercial version supports serial and parallel types
|
2020-12-04 19:58:01 +08:00
|
|
|
|
|
|
|
[genesis]
|
|
|
|
addresses = [
|
|
|
|
"0xc7F999b83Af6DF9e67d0a37Ee7e900bF38b3D013",
|
|
|
|
"0x79a1215469FaB6f9c63c1816b45183AD3624bE34",
|
|
|
|
"0x97c8B516D19edBf575D72a172Af7F418BE498C37",
|
|
|
|
"0xc0Ff2e0b3189132D815b8eb325bE17285AC898f8"
|
2020-12-17 16:04:16 +08:00
|
|
|
]
|