example/deployment/haproxy/haproxy.cfg
raw| 1 | defaults |
| 2 | mode http |
| 3 | timeout connect 10s |
| 4 | timeout client 30s |
| 5 | timeout server 30s |
| 6 | |
| 7 | frontend websocket |
| 8 | bind localhost:8080 |
| 9 | default_backend websocket |
| 10 | |
| 11 | backend websocket |
| 12 | balance leastconn |
| 13 | server websockets-test_00 localhost:8000 |
| 14 | server websockets-test_01 localhost:8001 |
| 15 | server websockets-test_02 localhost:8002 |
| 16 | server websockets-test_03 localhost:8003 |
| 17 |