Skip to content

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

License

Notifications You must be signed in to change notification settings

naugtur/https-proxy-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https-proxy-cli Build Status

Greenkeeper badge

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]

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published