forked from mtusi2026/mtusi2026lab3
43 lines
933 B
INI
43 lines
933 B
INI
global
|
|
log stdout format raw local0
|
|
maxconn 512
|
|
hard-stop-after 5s
|
|
|
|
defaults
|
|
log global
|
|
mode http
|
|
option httplog
|
|
option dontlognull
|
|
timeout connect 500ms
|
|
timeout client 10s
|
|
timeout server 5s
|
|
timeout check 1s
|
|
retries 1
|
|
retry-on conn-failure
|
|
option redispatch
|
|
|
|
resolvers docker
|
|
nameserver dns 127.0.0.11:53
|
|
resolve_retries 3
|
|
timeout resolve 1s
|
|
timeout retry 1s
|
|
hold valid 1s
|
|
hold obsolete 1s
|
|
hold nx 1s
|
|
hold timeout 1s
|
|
hold refused 1s
|
|
hold other 1s
|
|
|
|
frontend public
|
|
bind :8080
|
|
default_backend replicas
|
|
|
|
backend replicas
|
|
balance roundrobin
|
|
option httpchk
|
|
http-check send meth GET uri /health/ready ver HTTP/1.1 hdr Host localhost
|
|
http-check expect status 200
|
|
default-server check inter 1s fall 2 rise 1 resolvers docker resolve-prefer ipv4 init-addr libc,none
|
|
server api1 api1:8080
|
|
server api2 api2:8080
|