Quite simple http port forwarder.
Get x86_64 static binary from releases.
For example, listens '0.0.0.0:8080' and forwards by paths as follows.
0.0.0.0:8080 /clickhouse/* => 127.0.0.1:8123/* /* => 127.0.0.1:9001/*
[front] host = "0.0.0.0" port = 8080 [[back]] path = "/clickhouse" port = 8123 remove_path = true [[back]] path = "/" port = 9001 [logger] path = "STDOUT" colorize = true
$ http-gate -c config.toml I [11:43:30] F Add [Back#0] '/clickhouse/' => 127.0.0.1:8123 I [11:43:30] F Add [Back#1] '/' => 127.0.0.1:9001 I [11:43:30] F Listening on http://0.0.0.0:8080
- needs crystal-0.26.1
- Fork it (https://github.com/maiha/http-gate/fork)
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request
- maiha maiha - creator, maintainer