https://github.com/naugtur/https-proxy-cli
One command to run a local https server proxying to local http
https://github.com/naugtur/https-proxy-cli
Last synced: 7 months ago
JSON representation
One command to run a local https server proxying to local http
- Host: GitHub
- URL: https://github.com/naugtur/https-proxy-cli
- Owner: naugtur
- License: mit
- Created: 2017-05-24T10:23:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-02T09:56:40.000Z (over 1 year ago)
- Last Synced: 2025-02-28T23:10:35.040Z (8 months ago)
- Language: JavaScript
- Size: 119 KB
- Stars: 20
- Watchers: 2
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# https-proxy-cli [](https://travis-ci.org/naugtur/https-proxy-cli)
[](https://greenkeeper.io/)
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 --helpPut https in front of your running app
Example: https-proxy -t http://localhost:8080 -p 8888 --path ~
Usage: https-proxyOptions:
-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]
```