You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fangdingjun a336f89a1e | 7 years ago | |
---|---|---|
.gitignore | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago | |
config.go | 7 years ago | |
config_example.yaml | 7 years ago | |
config_test.go | 7 years ago | |
handler.go | 7 years ago | |
main.go | 7 years ago |
README.md
tlsendpoint
a tls termination util that forward the request to backend server by sni name
support many different kind of backends, tcp, unix, tls...
example:
client A requests with sni name a.example.com forward to 127.0.0.1:8081
client B requests with sni name b.example.com forward to 127.0.0.1:8082
usage
go get github.com/fangdingjun/tlsendpoint
cp $GOPATH/src/github.com/fangdingjun/tlsendpoint/config_example.yaml config.yaml
vim config.yaml
$GOPATH/bin/tlsendpoint -c config.yaml