Files
mtusi2026lab7/infra/otel/gateway.conf
T
HellsTomatoandCopilot 2ef0299e34
Skeleton contracts / contracts (pull_request) Canceled after 0s
Complete lab7 grade 4 implementation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-06 15:35:53 +03:00

19 lines
576 B
Plaintext

server {
listen 4318 ssl;
server_name otel-gateway;
ssl_certificate /run/secrets/collector.crt;
ssl_certificate_key /run/secrets/collector.key;
ssl_client_certificate /run/secrets/ca.crt;
ssl_verify_client on;
ssl_verify_depth 2;
ssl_protocols TLSv1.2 TLSv1.3;
if ($ssl_client_s_dn !~ "^CN=(api-otel|worker-otel)$") { return 403; }
location / {
proxy_pass http://otel-collector:4318;
proxy_set_header Connection "";
proxy_http_version 1.1;
proxy_read_timeout 60s;
proxy_send_timeout 60s;
}
}