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

This commit is contained in:
2026-11-13 13:10:15 +03:00
parent 276dbdad8a
commit ab9161be3d
64 changed files with 5191 additions and 34 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