version: 1
threads: 2
pid_file: /tmp/apigw.pid
error_log: /tmp/apigw.log
rps: 1000 # requests per second for rate limiting
addr: "0.0.0.0:8080" # listen address
proxy:
- path: /check
tls: false
protocol: http
domain:
targets:
- ip: "0.0.0.0"
port: 8081
- ip: "0.0.0.0"
port: 8082
- path: /test
tls: false
protocol: http
domain:
targets:
- ip: "0.0.0.0"
port: 8083
- ip: "0.0.0.0"
port: 8084
cargo run -- -c config.yaml