simple reverse proxy.
# compile server and client
go get -v github.com/Dreamacro/singulard/cmd/singulard
go get -v github.com/Dreamacro/singular/cmd/singular
Getting started
Server
# run server
singulard -port 8000
Options
-port port
, e.g.,-port 8000
, default8080
-log logPath
, e.g.,-log proxy.log
, default log is tty mode-tls
, with tls-cert cert
, e.g.,-cert cert.pem
, defaultcert.pem
-key key
, e.g.,-key cert.key
, defaultcert.key
Client
# run client
singular -config config.yml
Options
-config yaml
, e.g.,-config config.yaml
, defaultconfig.yml
server_addr: domain.com:8080
proxy:
ssh: tcp://0.0.0.0:22
docker: unix:///var/run/docker.sock
-log logPath
, e.g.,-log proxy.log
, default log is tty mode-tls
, with tls-cert cert
, e.g.,-cert cert.pem
, defaultcert.pem
-key key
, e.g.,-key cert.key
, defaultcert.key
Start with tls
singulard -tls
singular -tls
from https://github.com/dreamacro/singular
No comments:
Post a Comment