Add Nginx location for incoming-request-ingest with proxy settings

This commit is contained in:
Simon Larsen
2024-11-22 18:24:47 +00:00
parent e3a2f95fc2
commit f45c7f8d30

View File

@@ -515,6 +515,18 @@ server {
proxy_pass http://open-telemetry-ingest;
}
location /incoming-request-ingest {
# This is for nginx not to crash when service is not available.
resolver 127.0.0.1 valid=30s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://incoming-request-ingest;
}
location /otlp/ {
# This is for nginx not to crash when service is not available.