elixir-reverse-proxy icon indicating copy to clipboard operation
elixir-reverse-proxy copied to clipboard

Wishlist: how to get something running

Open davidw opened this issue 8 years ago • 1 comments

The docs are a bit sparse in terms of just getting something running that I can try out.

I want to, say, proxy http://localhost:3210 to http://example.com just to check things out and see how everything works. I just get 'bad request' responses from Cowboy when hitting localhost.

Thanks

davidw avatar Jun 09 '17 20:06 davidw

Here's what I did:

config :reverse_proxy, upstreams: %{
  "foobar.local" => ["www.example.com"],
  "api." => {ReverseProxyTest.SuccessPlug, []} }

With foobar.local something I added to /etc/hosts

I also had to fiddle with the code because of this: https://github.com/slogsdon/elixir-reverse-proxy/issues/2

davidw avatar Jun 13 '17 18:06 davidw