Public Repository

Last pushed: 2 years ago
Short Description
Remote controller haproxy
Full Description

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"
Docker Pull Command
Owner
guillermo