forked from mtusi2026/mtusi2026lab7
15 lines
393 B
Plaintext
15 lines
393 B
Plaintext
events {}
|
|
http {
|
|
server {
|
|
listen 8443 ssl;
|
|
ssl_certificate /tls/server/cert.crt;
|
|
ssl_certificate_key /tls/server/cert.key;
|
|
ssl_client_certificate /tls/ca.crt;
|
|
ssl_verify_client on;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
if ($ssl_client_s_dn != "CN=lab-lb") { return 403; }
|
|
client_max_body_size 10m;
|
|
location / { proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; }
|
|
}
|
|
}
|