https-proxy-cli

One command to run a local https server proxying to local http

MIT License

Downloads
171
Stars
20

https-proxy-cli Build Status

One command to run a local https proxy.

No need to set up certs!

Install

npm install -g https-proxy-cli

Usage

https-proxy -t http://localhost:80 -p 1234
https-proxy --help

Put https in front of your running app
Example: https-proxy -t http://localhost:8080 -p 8888 --path ~
Usage: https-proxy <options>

Options:
  -t, --target  target address, like http://localhost:80  [required]
  -p, --port    port to use for https                     [required]
  --keys        path for storing .key.pem and .cert.pem   [string]  [default: "."]
  --insecure    flag to accept insecure connections
  --xfwd        adds x-forward headers
  --rewrite-origin          changes the origin of the host header to the target URL                                          [default: false]
  --rewrite-location        rewrites the location host/port on (201/301/302/307/308) redirects based on requested host/port  [default: false]
  --rewrite-cookies-domain  rewrites domain of set-cookie headers                                                            [default: false]