2016-06-15 05:08:00 +02:00
|
|
|
# +- jp (:1081)
|
|
|
|
# |
|
|
|
|
# |- tw (:1082)
|
|
|
|
# frontend --- backend -+
|
|
|
|
# (*:1080) |- hk (:1083)
|
|
|
|
# |
|
|
|
|
# +- us (:1084)
|
|
|
|
|
|
|
|
global
|
|
|
|
maxconn 4000
|
|
|
|
|
|
|
|
defaults
|
|
|
|
mode tcp
|
|
|
|
timeout connect 5000ms
|
|
|
|
timeout client 50000ms
|
|
|
|
timeout server 50000ms
|
|
|
|
|
2023-06-29 12:48:12 +02:00
|
|
|
frontend stats
|
|
|
|
mode http
|
|
|
|
bind *:8404
|
|
|
|
stats enable
|
|
|
|
stats uri /stats
|
|
|
|
stats refresh 15s
|
|
|
|
stats admin if TRUE
|
|
|
|
|
2016-06-15 05:08:00 +02:00
|
|
|
frontend front
|
|
|
|
bind *:1080
|
|
|
|
default_backend back
|
|
|
|
|
|
|
|
backend back
|
|
|
|
balance roundrobin
|
2023-06-29 12:48:12 +02:00
|
|
|
server jp 127.0.0.1:1081 check inter 30s
|
|
|
|
server tw 127.0.0.1:1082 check inter 30s
|
|
|
|
server hk 127.0.0.1:1083 check inter 30s
|
|
|
|
server us 127.0.0.1:1084 check inter 30s
|