add level 3

This commit is contained in:
Матвей
2026-11-07 15:00:53 +03:00
parent eafb825657
commit 7b6c10cde9
54 changed files with 1593 additions and 120 deletions
+9 -4
View File
@@ -20,8 +20,13 @@ resolvers docker
hold valid 2s
hold obsolete 2s
frontend http
bind :8080
frontend https
bind :8443 ssl crt /run/secrets/ingress.pem ssl-min-ver TLSv1.2
default_backend api
frontend container_health
bind 127.0.0.1:8404
http-request deny unless { path -i /health/ready } { method GET }
default_backend api
backend api
@@ -30,6 +35,6 @@ backend api
http-check send meth GET uri /health/ready ver HTTP/1.1 hdr Host localhost
http-check expect status 200
default-server check inter 2s fall 1 rise 2 resolvers docker resolve-prefer ipv4 init-addr libc,none
server api-a api-a:8080
server api-b api-b:8080
server api-a api-a:8444 ssl verify required ca-file /run/secrets/ca.crt crt /run/secrets/lb.pem verifyhost api-a
server api-b api-b:8444 ssl verify required ca-file /run/secrets/ca.crt crt /run/secrets/lb.pem verifyhost api-b