Files
mtusi2026lab3/infra/haproxy.cfg
T
2026-11-09 19:51:17 +03:00

12 lines
319 B
INI

frontend http-in
bind *:8080
default_backend api_servers
backend api_servers
balance roundrobin
option httpchk GET /health
server api1 api1:8080 check inter 3s fall 3 rise 2
server api2 api2:8080 check inter 3s fall 3 rise 2
http-request set-header X-Instance-Id %[req.hdr(X-Instance-Id)]