config/thriftproxy.toml (57 lines of code) (raw):
[admin]
host = "0.0.0.0"
port = "9997"
http_enabled = true
http_host = "0.0.0.0"
http_port = "9996"
[listener]
# listener socket address
address = "0.0.0.0:12322"
# epoll timeout in milliseconds
timeout = 100
# epoll max events returned
nevent = 1024
[frontend]
# number of frontend threads
threads = 1
# epoll timeout in milliseconds
timeout = 100
# epoll max events returned
nevent = 1024
[backend]
# number of frontend threads
threads = 1
# epoll timeout in milliseconds
timeout = 100
# epoll max events returned
nevent = 1024
# provide one or more endpoints as socket addresses
endpoints = [
"127.0.0.1:12321",
]
# to discover endpoints using zookeeper, provide the following
# the zookeeper server address
# zk_server = "zookeeper.example.com"
# the path to the service zknodes
# zk_path = "/service/path/name"
# the node endpoint to use
# zk_endpoint = "serviceEndpoint"
[debug]
# choose from: error, warn, info, debug, trace
log_level = "info"
# optionally, log to the file below instead of standard out
# log_file = "thriftproxy.log"
# backup file name for use with log rotation
log_backup = "thriftproxy.log.old"
# trigger log rotation when the file grows beyond this size (in bytes). Set this
# option to '0' to disable log rotation.
log_max_size = 1073741824
[tls]
# certificate chain used to validate certificate
# certificate_chain = "cert.chain"
# proxy certificate
# certificate = "proxy.crt"
# proxy private key
# private_key = "proxy.key"
# ca certificate file used as the root of trust
# ca_file = "ca.crt"