Files
mtusi2026lab4/infra/haproxy.cfg
2026-11-17 02:09:04 +03:00

31 lines
702 B
INI

global
log stdout format raw local0
maxconn 1024
defaults
log global
mode http
option httplog
timeout connect 1s
timeout client 30s
timeout server 30s
timeout http-request 10s
timeout queue 5s
resolvers docker
nameserver embedded 127.0.0.11:53
accepted_payload_size 8192
hold valid 2s
hold obsolete 2s
frontend public
bind :8080
default_backend messenger_api
backend messenger_api
option httpchk
http-check send meth GET uri /health/ready ver HTTP/1.1 hdr Host localhost
http-check expect status 200
default-server inter 1s fall 2 rise 1
server-template api 1-8 api:8080 check resolvers docker init-addr libc,none