• Stars
    star
    629
  • Rank 71,454 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 12 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

local-ssl-proxy

CI NPM Version License

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

Quick Start

The package supports immediate use via npx or you can install it globally.

Use via npx:

npx local-ssl-proxy

Install globally:

npm install -g local-ssl-proxy

Usage

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:<source-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 share setups with team members. These can contain multiple proxies that 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

Run SSL proxy with a self-signed trusted certificate

You can use it to host any domain, just change localhost to anything you like, wildcards are also supported.

  1. Install mkcert (choco install mkcert / brew install mkcert)
  2. Run mkcert -install
  3. Run mkcert localhost
  4. Run
local-ssl-proxy --key localhost-key.pem --cert localhost.pem --source 9001 --target 9000
  1. You're all set! Just go to https://localhost:9001 and see your project working!

More Repositories

1

prettier-package-json

Prettier formatter for package.json files
TypeScript
143
star
2

alexa

Monorepo of libraries used for Amazon Alexa development
JavaScript
38
star
3

ink-markdown

Render markdown text using Ink
TypeScript
29
star
4

ink-monorepo

Monorepo for Ink related packages
TypeScript
27
star
5

jest-watch-directories

Jest watch plugins to filter to directories, lerna packages, or yarn workspaces
JavaScript
26
star
6

generator-alexa-skill

A Yeoman generator for scaffolding an ES2015 Alexa Skill for AWS Lambda
JavaScript
22
star
7

flight-storage

Store JSON data using multiple storage backends
JavaScript
20
star
8

glacier-cli

Amazon AWS Glacier command line interface for Linux, Mac and Windows
Java
19
star
9

jsonymize

Anonymize JSON values, easily.
JavaScript
16
star
10

graphql-shorthand-parser

Parse GraphQL schemas from shorthand notation
JavaScript
15
star
11

unicode-tr51-emoji

Emoji data extracted from Unicode Technical Report #51 v1.0 – v5.0
JavaScript
15
star
12

alexa-annotations

Create Alexa Skills using ES6 classes, promises, and ES7 decorators
JavaScript
15
star
13

sonos-bluetooth

Trying to make a Raspberry Pi Bluetooth A2DP to Sonos bridge
Shell
11
star
14

alexa-reasonml

An example Alexa skill written in ReasonML
OCaml
11
star
15

flight-viewport

Responsive breakpoint component for Flight
JavaScript
10
star
16

divine-player

HTML5 video player that degrades to Flash if necessary
JavaScript
10
star
17

flight-geolocation

Geo-location component for Flight
JavaScript
10
star
18

grunt-fontfactory

Grunt task which creates a font from multiple SVG glyph files
JavaScript
9
star
19

rollup-plugin-pegjs

Import PEG.js grammars as parsers directly in your code
JavaScript
7
star
20

emoji-lang

Calculate emoji positioning within strings
JavaScript
7
star
21

flight-js-snippets

Flight JS Snippets for Sublime Text
6
star
22

blackjack-spine

Blackjack written using SpineJS and Bootstrap
JavaScript
6
star
23

kanye-alexa-skill

An Alexa skill for the Amazon Echo. It reads Kanye's tweets.
JavaScript
5
star
24

event-matchers

Composable functions for handling event callbacks in JS
JavaScript
5
star
25

HappyDays

Android application that notifies you of your contacts' birthdays and anniversaries.
Java
4
star
26

flight-conductor

A media timeline conductor inspired by popcorn.js
JavaScript
4
star
27

alexa-playground

Play with Alexa skills and requests
JavaScript
4
star
28

social-media-alexa-skill

An Alexa skill for the Amazon Echo – it reads trending topics from Social Media.
JavaScript
4
star
29

space-alexa-skill

Alexa skill for the Amazon Echo – it plays audio from the NASA API
JavaScript
3
star
30

shift

A few jscodeshift transforms
JavaScript
3
star
31

twitter-lang

A formal grammar defining tweet text
JavaScript
3
star
32

divine-card

Improving Vine's card implementation
JavaScript
3
star
33

npm-config-user-agent-parser

Parser for process.env.npm_config_user_agent
JavaScript
2
star
34

sort-order

Combine a series of sort functions to create complex sort orders.
TypeScript
2
star
35

flight-orientation-app

iOS7-ish parallax homescreen made using HTML5, CSS3 and Flight JS
JavaScript
2
star
36

regulation

A monorepo of libraries and tools for parsing and converting Regulation lang to regular expressions
JavaScript
2
star
37

flight-edge

Triggers an event when entering or leaving a screen edge
JavaScript
2
star
38

astcenc

A command-line tool for compressing and decompressing images using the ASTC texture compression standard.
Shell
1
star
39

airport-search-alexa-app

Amazon Alexa skill for searching for airport details
JavaScript
1
star
40

superheroes-alexa-skill

An Alexa skill for the Amazon Echo – it reveals superheroes identities.
JavaScript
1
star
41

gif-pause

Click to play/pause animated GIFs
1
star
42

flight-orientation

A flight component for device orientation
JavaScript
1
star
43

berry-bin-bug

Repository demonstrating a Yarn 2.0 issue
JavaScript
1
star
44

divine-font

An icon font for divine-player
JavaScript
1
star
45

fourcrawl

#foursquarehackday2013
Java
1
star
46

emoji-trie

WIP
JavaScript
1
star
47

alexa-response

Build JSON responses for Amazon Alexa, easily.
JavaScript
1
star
48

chancejs-twitter

ChanceJS mixins for Twitter structures.
JavaScript
1
star
49

Escalate

Android app that intercepts SMS messages which match a user-defined RegEx and then goes nuts
Java
1
star