feat: complete lab 7 for grade 4
Skeleton contracts / contracts (pull_request) Blocked by required conditions

This commit is contained in:
sashadugina06
2026-12-04 13:55:32 +03:00
parent 20afc2c790
commit 11390b65fd
91 changed files with 10163 additions and 50 deletions
+32
View File
@@ -0,0 +1,32 @@
global
maxconn 1024
defaults
mode http
timeout connect 1s
timeout client 60s
timeout server 60s
timeout check 1s
retries 0
resolvers docker
nameserver dns 127.0.0.11:53
hold valid 2s
frontend public
bind :8443 ssl crt /run/identity/server.pem ssl-min-ver TLSv1.2
default_backend replicas
backend replicas
balance roundrobin
option httpchk
http-check send meth GET uri /health/ready ver HTTP/1.1 hdr Host localhost
http-check expect status 200
default-server inter 1s fall 2 rise 1 resolvers docker init-addr libc,none
server a api-a-tls:8444 check ssl verify required ca-file /run/trust/ca.crt crt /run/identity/client.pem sni str(api-a-tls) check-sni api-a-tls verifyhost api-a-tls
server b api-b-tls:8444 check ssl verify required ca-file /run/trust/ca.crt crt /run/identity/client.pem sni str(api-b-tls) check-sni api-b-tls verifyhost api-b-tls
frontend monitoring
bind :8404 ssl crt /run/identity/server.pem ca-file /run/trust/ca.crt verify required
http-request deny unless { ssl_c_s_dn(cn) -m str prometheus-scrape } { path /metrics }
http-request use-service prometheus-exporter