Skip to content

Commit

Permalink
Add Nginx locations for fluent-ingest and open-telemetry-ingest with …
Browse files Browse the repository at this point in the history
…proxy settings
  • Loading branch information
simlarsen committed Nov 22, 2024
1 parent d27c161 commit e3a2f95
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Nginx/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,31 @@ server {
proxy_pass http://accounts;
}

location /fluent-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://fluent-ingest;
}


location /open-telemetry-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://open-telemetry-ingest;
}

location /otlp/ {

# This is for nginx not to crash when service is not available.
Expand Down

0 comments on commit e3a2f95

Please sign in to comment.