guillermo/gaproxy
Rest API to control an haproxy instance.
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"]
}'
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"]
}'
$ curl localhost:10001
"I am the backend at 9000"
$ curl localhost:10001
"I am the backend at 9001"
$ curl localhost:10002
"I am the backend at 9000"
$ curl localhost:10002
"I am the backend at 9001"
docker pull guillermo/gaproxy