2.0.5 • Published 1 year ago

local-ssl-proxy v2.0.5

Weekly downloads
21,989
License
MIT
Repository
-
Last release
1 year ago

local-ssl-proxy

Build Status NPM Version License

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

Install

npm install -g local-ssl-proxy

Run

To start a proxy from port 9001 to 9000 run:

local-ssl-proxy --source 9001 --target 9000

Start your web server on the target 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.

Using a dynamic DNS provider such as noip or DynDNS or a static IP (if you have one) you can open a port in your firewall to allow external sites to call into your web server. This is great for developing applications using OAuth without having to deploy externally.

Advanced

You can also pass a configuration file, this helps sharing setups with team members. These can contain multiple proxies which local-ssl-proxy will open concurrently.

Example config:

{
  "My proxy": {
    "source": 3001,
    "target": 3000
  },
  "Another proxy": {
    "source": 9999,
    "target": 9000
  }
}

And run the proxy with the configuration file:

local-ssl-proxy --config config.json
2.0.3

1 year ago

2.0.2

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.3.0

8 years ago

1.2.3

8 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago