Quite simple http port forwarder
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
spec
src
.editorconfig
.gitignore
.travis.yml
LICENSE
Makefile
README.md
github_release
shard.yml

README.md

http-gate Build Status

Quite simple http port forwarder.

Installation

Get x86_64 static binary from releases.

Usage

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

Development

  • needs crystal-0.26.1
$ make

Contributing

  1. Fork it (https://github.com/maiha/http-gate/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • maiha maiha - creator, maintainer