forked from mtusi2026/mtusi2026lab7
Выполнить лабораторную 7 по безопасности мессенджера
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
global
|
||||
log stdout format raw local0
|
||||
maxconn 512
|
||||
hard-stop-after 5s
|
||||
ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets
|
||||
ssl-default-server-options ssl-min-ver TLSv1.2 no-tls-tickets
|
||||
|
||||
defaults
|
||||
log global
|
||||
mode http
|
||||
log-format "%HM %ST %Ta %tsc"
|
||||
timeout connect 2s
|
||||
timeout check 3s
|
||||
timeout client 15s
|
||||
timeout server 15s
|
||||
timeout http-request 4s
|
||||
retries 1
|
||||
option redispatch
|
||||
option httpchk GET /health/ready
|
||||
http-check expect status 200
|
||||
|
||||
resolvers docker
|
||||
nameserver embedded 127.0.0.11:53
|
||||
resolve_retries 3
|
||||
timeout resolve 1s
|
||||
timeout retry 1s
|
||||
hold valid 2s
|
||||
hold obsolete 2s
|
||||
|
||||
frontend public_api
|
||||
bind :8443 ssl crt /run/edge/service.pem
|
||||
http-request del-header X-User-Id
|
||||
default_backend messenger_api
|
||||
|
||||
backend messenger_api
|
||||
balance roundrobin
|
||||
server-template api 1-8 api:8080 ssl verify required ca-file /run/identity/ca.crt crt /run/identity/service.pem sni str(api) check-sni api verifyhost api check inter 1s fastinter 500ms fall 2 rise 1 resolvers docker init-addr libc,none
|
||||
Reference in New Issue
Block a user