Willy Tarreau | 5907078 | 2017-10-04 15:42:00 +0200 | [diff] [blame] | 1 | global |
| 2 | maxconn 500 |
| 3 | external-check |
| 4 | stats socket /tmp/sock1 mode 666 level admin |
| 5 | |
| 6 | defaults |
| 7 | timeout client 5s |
| 8 | timeout server 5s |
| 9 | timeout connect 5s |
| 10 | mode http |
| 11 | |
| 12 | listen stats |
| 13 | bind :8888 |
| 14 | stats uri / |
| 15 | |
| 16 | listen up |
| 17 | bind :8001 |
| 18 | option external-check |
| 19 | external-check command /bin/true |
| 20 | server srv 127.0.0.1:8000 check inter 1000 |
| 21 | |
| 22 | listen down |
| 23 | bind :8002 |
| 24 | option external-check |
| 25 | external-check command /bin/false |
| 26 | server srv 127.0.0.1:8000 check inter 1000 |