Complete lab 7 TLS and secret management
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
global
|
||||
log stdout format raw local0
|
||||
maxconn 256
|
||||
|
||||
defaults
|
||||
log global
|
||||
mode http
|
||||
timeout connect 2s
|
||||
timeout client 30s
|
||||
timeout server 30s
|
||||
retries 2
|
||||
option redispatch
|
||||
|
||||
resolvers docker
|
||||
nameserver dns 127.0.0.11:53
|
||||
resolve_retries 3
|
||||
timeout resolve 1s
|
||||
timeout retry 1s
|
||||
hold valid 2s
|
||||
|
||||
frontend public_https
|
||||
bind :8443 ssl crt /run/certs/ingress.pem alpn h2,http/1.1 ssl-min-ver TLSv1.2
|
||||
http-response set-header Strict-Transport-Security "max-age=31536000"
|
||||
http-response set-header X-Content-Type-Options nosniff
|
||||
default_backend apis
|
||||
|
||||
backend apis
|
||||
balance roundrobin
|
||||
option httpchk GET /health/ready
|
||||
http-check expect status 200
|
||||
server api1 api1:8443 check inter 2s fall 2 rise 1 ssl verify required ca-file /run/certs/service-ca.crt crt /run/certs/lb-client.pem sni str(api1) verifyhost api1 resolvers docker init-addr libc,none
|
||||
server api2 api2:8443 check inter 2s fall 2 rise 1 ssl verify required ca-file /run/certs/service-ca.crt crt /run/certs/lb-client.pem sni str(api2) verifyhost api2 resolvers docker init-addr libc,none
|
||||
Reference in New Issue
Block a user