@magnus/dev-proxy
Simple SSL HTTP proxy using a self-signed certificate. Intended for local development only.
Last updated a year ago by magnus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @magnus/dev-proxy 
SYNC missed versions from official npm registry.

@magnus/dev-proxy

This is sadly just a forked module of dev-proxy. It fixes the install on windows on parent proxy.

Simple SSL HTTP proxy using a self-signed certificate. Intended for local development only. Based off of local-ssl-proxy.

Usage: dev-proxy [options]

Options:

  -h, --help                            output usage information
  -V, --version                         output the version number
  -p --proxy <source port:target port>  ports to proxy
  -k --key [keyPath]                    optional path to key file
  -c --cert [certPath]                  optional path to cert file
  -h --host [hostname]                  optional hostname

Install

npm install -g @magnus/dev-proxy
# will automatically generate a self-signed cert/key

Run

To start a proxying from port 9000 to 9001 run:

dev-proxy --proxy 9000:9001

Start your web server on the source port (9000 in the example) and navigate to https://localhost:<target-port> (https://localhost:9001 in the example). You'll get a warning because the certificate is self-signed, this is safe to ignore during development.

To create multiple proxies run:

dev-proxy --proxy 8080:8443 --proxy 9080:9443

Current Tags

  • 2.1.4                                ...           latest (a year ago)

2 Versions

  • 2.1.4                                ...           a year ago
  • 2.1.3                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |