ЛР 4 — БВТ2303 — Брезгунова — на 5

This commit is contained in:
2026-10-29 13:02:56 +03:00
parent ec540a1a72
commit b78cadb893
73 changed files with 2076 additions and 36 deletions
+26
View File
@@ -0,0 +1,26 @@
global
maxconn 256
defaults
mode http
timeout connect 3s
timeout client 35s
timeout server 35s
resolvers docker
nameserver dns 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold valid 1s
hold obsolete 1s
frontend public
bind *:8080
http-request deny if { path_beg /internal-test/ }
default_backend api
backend api
balance roundrobin
option httpchk GET /health/ready
http-check expect status 200
retries 2
option redispatch
server api1 api1:8080 check inter 1s fall 2 rise 1 resolvers docker resolve-prefer ipv4 init-addr libc,none
server api2 api2:8080 check inter 1s fall 2 rise 1 resolvers docker resolve-prefer ipv4 init-addr libc,none