base of lab 4

This commit is contained in:
2026-11-10 17:12:13 +03:00
parent 276dbdad8a
commit 1ec85a2402
78 changed files with 6133 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
global
log stdout format raw local0
maxconn 2048
defaults
mode http
log global
option httplog
timeout connect 1s
timeout client 12s
timeout server 10s
timeout check 1s
timeout queue 2s
retries 0
resolvers docker
nameserver docker 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold valid 1s
hold obsolete 1s
hold nx 1s
hold refused 1s
hold timeout 1s
frontend public
bind :8080
http-request deny if { path_beg /actuator }
default_backend api
backend api
balance roundrobin
option httpchk
http-check send meth GET uri /health/ready ver HTTP/1.1 hdr Host api
http-check expect status 200
server-template node 1-8 api:8080 check inter 1s fastinter 500ms downinter 1s fall 2 rise 2 resolvers docker resolve-prefer ipv4 init-addr libc,none