Files

16 lines
543 B
INI

global
log stdout format raw local0
defaults
mode http
timeout connect 2s
timeout client 60s
timeout server 60s
frontend from_lb
bind :8443 ssl crt /run/pki/api2-tls.pem ca-file /run/pki/ca.crt crl-file /run/pki/ca.crl verify required ssl-min-ver TLSv1.2
acl trusted_identity ssl_c_s_dn(cn) -m str lab7-lb
acl trusted_san ssl_c_san -m reg (^|,)([[:space:]]*)DNS:lab7-lb($|,)
http-request deny deny_status 403 unless trusted_identity trusted_san
default_backend local_api
backend local_api
server app 127.0.0.1:8080 check