/reverseproxy

Primary LanguageGoMIT LicenseMIT

reverseproxy

why

simple reverse proxy should be easy

what

a reverse proxy for one or more http upstreams behind a single wildcard certificate.

cert: *.example.com upstream1: one.example.com upstream2: two.example.com

install

go get github.com/nathants/reverseproxy

usage

>> reverseproxy -h

Usage: main [--addr ADDR] [--timeout TIMEOUT] [--ssl-cert SSL-CERT] [--ssl-key SSL-KEY] [--upstream UPSTREAM]

Options:
  --addr ADDR,         -a ADDR [default: :443]
  --timeout TIMEOUT,   -t TIMEOUT [default: 5]
  --ssl-cert SSL-CERT, -c SSL-CERT
  --ssl-key SSL-KEY,   -k SSL-KEY
  --upstream UPSTREAM, -u UPSTREAM
                         may specify upstreams: -u foo.com=localhost:8080 bar.com=localhost:8081