GLoSS is a simple HTTPS reverse proxy that allows you to easily develop and test on HTTPS locally
- No dependencies. Just one self-contained single executable
- Passes the same headers you'd expect with any other reverse proxy ssl
- "X-Forwarded-Proto": "https"
- "X-Forwarded-For": "the.clients.real.ip"
- Changes Host header to work with webpack-dev-server
- Doesn't require trusting a CA cert, only valid signing for the hosts you specify (default: *.local.dev)
- Redirect your domain to local:
echo "127.0.0.1 example.org" | sudo tee -a /etc/hosts > /dev/null
- Create a certificate:
gloss setup --host example.org
- Start GLoSS proxy, and map the domain to local port 8080:
gloss --map "example.org:8080"
- Visit https://example.org, which will serve the content from localhost:8080
Import the certificate to your keychain:
open ~/.gloss/cert.pem
- Find the GLoSS cert and make it "Trusted"