Open davidw opened 7 years ago
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
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