Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjen committed Dec 25, 2015
1 parent 982f171 commit e40b6b1
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,34 @@ deployment](https://github.com/jeffjen/ambd)
`go get github.com/jeffjen/go-proxy/proxy`

### Running go-proxy as a standalone program
- Running with static candidates:
- Running with static candidates:
```
go-proxy --src :16379 --dst 10.0.3.144:6379
```
- Running with discovery backend:
- Running with discovery backend:
```
go-proxy --dsc http://etcd0:2379 --dsc http://etcd1:2379 \
--src :16379 \
--srv /srv/redis/debug
go-proxy --src :16379 --srv /srv/redis/debug \
--dsc http://etcd0:2379 \
--dsc http://etcd1:2379
```
- Adding TLS encryption to your connection
- Add TLS encryption to your connection
```
go-proxy tls-client --tlscacert ca.pem --tlskey key.pem --tlscert cert.pem \
--src :16379 --dst 10.0.3.144:6379
go-proxy tls-client --src :16379 --dst 10.0.3.144:6379 \
--tlscertpath s3://devops.example.org/client-cert
go-proxy tls-client --src :16379 --dst 10.0.3.144:6379 \
--tlscertpath /path/to/client-cert
```
- Setting up TLS proxy server
```
go-proxy tls-server --tlscacert ca.pem --tlskey key.pem --tlscert cert.pem \
--src :6379 --dst 10.0.3.144:6379
go-proxy tls-server --src :6379 --dst 10.0.3.144:6379 \
--tlscertpath s3://devops.example.org/server-cert
go-proxy tls-server --src :6379 --dst 10.0.3.144:6379 \
--tlscertpath /path/to/server-cert
```
### Behavior
Expand Down

0 comments on commit e40b6b1

Please sign in to comment.