From cc51070a9cb5d676d2c3d9261ea1cc4325385969 Mon Sep 17 00:00:00 2001 From: koichakaev <52+koichakaev@noreply.gitea.privcloud.tech> Date: Fri, 6 Nov 2026 19:11:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D1=83=D1=80=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8E=20HAProxy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/haproxy.cfg | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 infra/haproxy.cfg diff --git a/infra/haproxy.cfg b/infra/haproxy.cfg new file mode 100644 index 00000000..f2689b94 --- /dev/null +++ b/infra/haproxy.cfg @@ -0,0 +1,33 @@ +global + log stdout format raw local0 + maxconn 2048 + hard-stop-after 8s + +defaults + log global + mode http + option httplog + timeout connect 1s + timeout client 10s + timeout server 10s + timeout http-request 5s + retries 1 + option redispatch + option httpchk GET /health/ready + http-check expect status 200 + +resolvers docker + nameserver embedded 127.0.0.11:53 + resolve_retries 3 + timeout resolve 1s + timeout retry 1s + hold valid 2s + hold obsolete 2s + +frontend public_api + bind :8080 + default_backend messenger_api + +backend messenger_api + balance roundrobin + server-template api 1-16 api:8080 check inter 1s fall 2 rise 2 resolvers docker init-addr libc,none