forked from mtusi2026/mtusi2026lab3
12 lines
319 B
INI
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)]
|