A command-line tool to reverse proxy any server. eg. Github/Google/Facebook and more.
Usage
forward - A command line tool to quickly setup a reverse proxy server.
USAGE:
forward [OPTIONS] [host]
OPTIONS:
--help print help information
--version show version information
--port="<int>" specify the port that the proxy server listens on. defaults: 8080
--req-header="key=value" specify the request header attached to the request. defaults: ""
--res-header="key=value" specify the response headers. defaults: ""
--cors enable cors. defaults: false
--cors-allow-headers="<string>" allow send headers from client when cors enabled. defaults: ""
--cors-expose-headers="<string>" expose response headers from server when cors enabled. defaults: ""
EXAMPLES:
forward http://example.com
forward --port=80 http://example.com
forward --req-header="foo=bar" http://example.com
forward --cors --cors-allow-headers="Auth, Token" http://example.com