Skip to content

Commit

Permalink
Add Nginx location for incoming-request-ingest with proxy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Nov 22, 2024
1 parent e3a2f95 commit f45c7f8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Nginx/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f45c7f8

Please sign in to comment.