forked from mtusi2026/mtusi2026lab7
Закрывает обязательный минимум и трек 1: ротация leaf и секрета, sealed OpenBao и сохранность queued-задачи.
27 lines
732 B
Plaintext
27 lines
732 B
Plaintext
include /etc/nginx/serials.conf;
|
|
|
|
server {
|
|
listen 4318 ssl;
|
|
server_name otel-edge;
|
|
|
|
ssl_certificate /certs/server.crt;
|
|
ssl_certificate_key /certs/server.key;
|
|
ssl_client_certificate /certs/ca.crt;
|
|
ssl_verify_client on;
|
|
ssl_verify_depth 2;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
|
location / {
|
|
if ($otel_cn_ok = 0) { return 403; }
|
|
if ($otel_serial_ok = 0) { return 403; }
|
|
resolver 127.0.0.11 ipv6=off valid=10s;
|
|
set $otel_upstream otel-collector:4318;
|
|
proxy_pass http://$otel_upstream;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Connection "";
|
|
proxy_read_timeout 10s;
|
|
proxy_send_timeout 10s;
|
|
}
|
|
}
|