We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc694d3 commit e5bf8daCopy full SHA for e5bf8da
config/http.conf
@@ -30,6 +30,13 @@ http {
30
'' $server_port;
31
}
32
33
+ # If we receive X-Request-ID, pass it through; otherwise, pass along the
34
+ # request_id generated by nginx
35
+ map $http_x_request_id $proxy_x_request_id {
36
+ default $http_x_request_id;
37
+ '' $request_id;
38
+ }
39
+
40
proxy_http_version 1.1;
41
proxy_set_header Connection "";
42
proxy_set_header Host $host;
@@ -39,6 +46,7 @@ http {
46
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
47
proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl;
48
proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;
49
+ proxy_set_header X-Request-ID $proxy_x_request_id;
50
proxy_set_header X-Forwarded-Host $host;
43
51
44
52
proxy_read_timeout 600s;
0 commit comments