bitxhub/config/bitxhub.toml

65 lines
1.4 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 = "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
[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"
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
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]
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
[genesis]
addresses = [
"0xc7F999b83Af6DF9e67d0a37Ee7e900bF38b3D013",
"0x79a1215469FaB6f9c63c1816b45183AD3624bE34",
"0x97c8B516D19edBf575D72a172Af7F418BE498C37",
"0xc0Ff2e0b3189132D815b8eb325bE17285AC898f8"
]