lab3 gusak

This commit is contained in:
2026-11-12 21:23:41 +03:00
parent 0ab3a341aa
commit 353ec4441d
36 changed files with 1706 additions and 32 deletions
+29
View File
@@ -0,0 +1,29 @@
global
log stdout format raw local0
maxconn 2048
defaults
mode http
option httplog
timeout http-request 5s
timeout connect 1s
timeout client 30s
timeout server 30s
option httpchk GET /health/ready
http-check expect status 200
resolvers docker
nameserver dns 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold valid 5s
frontend public
bind :8080
default_backend api_backend
backend api_backend
balance roundrobin
option httpchk GET /health/ready
server-template api 4 api:8080 check inter 1s fall 2 rise 2 resolvers docker init-addr last,libc,none