A Plug based, reverse proxy server.
plug_adapter = Plug.Adapters.Cowboy
options = []
adapter_options = []
plug_adapter.http ReverseProxy.Router, options, adapter_options
Upstream servers can be listed per-domain in the following forms:
- List of remote nodes, e.g.
["host:4000", "host:4001"]
- A
{plug, options}
tuple, useful for umbrella applications
Note: This structure may change in the future as the project progresses.
config ReverseProxy,
# ...
upstreams: %{ "api." => ["localhost:4000"],
"slogsdon.com" => ["localhost:4001"] }
Enables the caching of the responses from the upstream server.
Note: This feature has not yet been built.
config ReverseProxy,
# ...
cache: false
ReverseProxy is released under the MIT License.
See LICENSE for details.