Sign inSign up

guillermo/gaproxy

By guillermo

•Updated almost 11 years ago

Remote controller haproxy

Image
0

130

guillermo/gaproxy repository overview

⁠Gaproxy

Rest API to control an haproxy instance.

⁠Update Backends

curl -d localhost:9999 -d '{
 "TcpBackends":["127.0.0.1:9000","127.0.0.1:9001"],
 "HttpBackends":["127.0.0.1:9000","127.0.0.1:9001"]
}'

⁠List current backends

curl -d localhost:9999 
'{
 "TcpBackends":["127.0.0.1:9000","127.0.0.1:9001"],
 "HttpBackends":["127.0.0.1:9000","127.0.0.1:9001"]
}'

⁠Connect to the backends through tcp

$ curl localhost:10001
"I am the backend at 9000"
$ curl localhost:10001
"I am the backend at 9001"

⁠Connect to the backends through http

$ curl localhost:10002
"I am the backend at 9000"
$ curl localhost:10002
"I am the backend at 9001"

Tag summary

Content type

Image

Digest

sha256:b952fb62f…

Size

72.7 MB

Last updated

almost 11 years ago

docker pull guillermo/gaproxy:0.1