Giter Site home page Giter Site logo

azuqua / dev-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cameronhunter/local-ssl-proxy

7.0 18.0 3.0 418 KB

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

License: Other

JavaScript 100.00%
team-sre azuqua-io-role-library

dev-proxy's Introduction

dev-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:target>  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 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

dev-proxy's People

Contributors

cameronhunter avatar ggreer avatar greenkeeperio-bot avatar nickclaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dev-proxy's Issues

Does not install on windows

Hello,

On windows the install script is not run.

$ npm i dev-proxy

> [email protected] install C:\src\my-project
> ./bin/create-keys

'.' is not recognized as an internal or external command, operable program or batch file.
...

I will do the patch soon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.