33 lines
831 B
Plaintext
33 lines
831 B
Plaintext
worker_processes 1;
|
|
error_log /dev/stderr warn;
|
|
pid /tmp/nginx.pid;
|
|
|
|
events {
|
|
worker_connections 64;
|
|
}
|
|
|
|
http {
|
|
access_log off;
|
|
server {
|
|
listen 4318 ssl;
|
|
server_name otel-collector;
|
|
|
|
ssl_certificate /certs/otel-collector.crt;
|
|
ssl_certificate_key /certs/private/otel-collector.key;
|
|
ssl_client_certificate /certs/ca.crt;
|
|
ssl_verify_client on;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
|
|
# Разрешены только api-client и worker-client (не любой leaf того же CA).
|
|
if ($ssl_client_s_dn !~* "CN=(api-client|worker-client)(,|$)") {
|
|
return 403;
|
|
}
|
|
|
|
location / {
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://otel-collector:14318;
|
|
}
|
|
}
|
|
}
|