command
module
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Sep 16, 2015
License: MIT
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
GLoSS (Go SSL)
Develop on Localhost with SSL
Why
Your webapp runs on HTTPS, but you develop locally on HTTP. That's not right.
GLoSS is a very simple HTTPS reverse proxy, which sets up and serves a TLS/SSL
frontend to your apps.
Downloads
Grab the latest release for your platform - https://github.com/mdp/gloss/releases
How
- Pick a hostname for your local development
echo "127.0.0.1 local.dev" | sudo tee /etc/hosts > /dev/null
echo "127.0.0.1 foo.local.dev" | sudo tee /etc/hosts > /dev/null
- Setup the certificate
gossl setup --host "local.dev,*.local.dev"
- Import the certificate to your keychain (Mac specific instructions below)
open ~/.gloss/cert.pem
- Find the GLoSS cert and make it "Trusted"
- Start using GLoSS
gloss --map "*:3000,foo:4000"
Maps foo.local.dev to port 4000, everything else to 3000
- Visit https://foo.local.dev:4443
- Will return the content at localhost:4000 via HTTPS
Notes
- Passes the same headers you'd expect with reverse proxy ssl
- "X-Forwarded-Proto": "https"
- "X-Forwarded-For": "the.clients.real.ip"
- Doesn't require trusting a CA cert, only valid signing for the *.local.dev hostname for example.
- Works on a variety of architectures with zero dependencies thanks to Golang (ARM, x86)
License: MIT
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.