forked from mtusi2026/mtusi2026lab4
31 lines
604 B
INI
31 lines
604 B
INI
global
|
|
log stdout format raw local0 info
|
|
maxconn 2000
|
|
|
|
defaults
|
|
mode http
|
|
log global
|
|
option httplog
|
|
timeout connect 2s
|
|
timeout client 30s
|
|
timeout server 20s
|
|
timeout http-request 10s
|
|
timeout check 1s
|
|
retries 3
|
|
option redispatch
|
|
|
|
resolvers dns
|
|
parse-resolv-conf
|
|
hold valid 1s
|
|
|
|
frontend public
|
|
bind :8080
|
|
default_backend api
|
|
|
|
backend api
|
|
balance roundrobin
|
|
option httpchk GET /health/ready
|
|
http-check expect status 200
|
|
default-server check inter 1s fall 2 rise 2 resolvers dns init-addr none
|
|
server-template api 4 api:8080
|