forked from mtusi2026/mtusi2026lab7
feat(lab7): implement secure messenger infrastructure with TLS, OpenBao and observability
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
global
|
||||
maxconn 256
|
||||
|
||||
defaults
|
||||
mode http
|
||||
timeout connect 5s
|
||||
timeout client 30s
|
||||
timeout server 30s
|
||||
|
||||
frontend api_mtls
|
||||
bind :8443 ssl crt /run/lab7-pki/api1.pem ca-file /run/lab7-pki/ca.crt verify required ssl-min-ver TLSv1.2
|
||||
|
||||
acl authorized_lb ssl_c_san -m str "DNS:lb.messenger.internal"
|
||||
http-request deny deny_status 403 unless authorized_lb
|
||||
|
||||
default_backend local_api
|
||||
|
||||
backend local_api
|
||||
server fastapi 127.0.0.1:8080 check
|
||||
Reference in New Issue
Block a user