This commit is contained in:
2026-11-20 15:30:33 +03:00
parent 20afc2c790
commit 36a56b3fe3
187 changed files with 431228 additions and 291 deletions
+46
View File
@@ -0,0 +1,46 @@
global
log stdout format raw local0
maxconn 2048
stats socket /tmp/haproxy.sock mode 600 level admin
stats socket ipv4@127.0.0.1:9999 level admin
defaults
log global
mode http
option httplog
timeout connect 1s
timeout client 15s
timeout server 12s
timeout http-request 7s
timeout http-keep-alive 2s
timeout check 1s
# Не повторяем POST автоматически: неизвестный результат повторяет клиент
# с исходным Idempotency-Key. Соединения к недоступному API не ждут долго.
retries 0
resolvers docker
nameserver dns 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold valid 1s
hold obsolete 1s
hold nx 1s
hold timeout 1s
hold refused 1s
accepted_payload_size 8192
frontend public
bind :8443 ssl crt /run/identity/service.pem ssl-min-ver TLSv1.3
http-request del-header X-Forwarded-For
http-request del-header X-Real-IP
http-request set-header X-Real-IP %[src]
default_backend api_pool
backend api_pool
balance roundrobin
option httpchk
http-check send meth GET uri /health/ready ver HTTP/1.1 hdr Host api
http-check expect status 200
default-server inter 1s fastinter 500ms downinter 1s fall 2 rise 2
server-template api 1-16 api:8443 ssl verify required ca-file /run/trust/ca.crt crl-file /run/trust/ca.crl crt /run/identity/service.pem verifyhost api sni str(api) check-sni api check resolvers docker resolve-prefer ipv4 init-addr none