Files
mtusi2026lab4/infra/haproxy.cfg
T

18 lines
381 B
INI

global
maxconn 128
defaults
mode http
timeout connect 2s
timeout client 30s
timeout server 30s
frontend public
bind :8080
default_backend api
backend api
balance roundrobin
option httpchk GET /health/ready
http-check expect status 200
default-server inter 1s fall 2 rise 1
server api1 api1:8080 check
server api2 api2:8080 check