Implement generate-request-id
Fixes https://github.com/kubernetes/ingress-nginx/issues/2546
This commit is contained in:
parent
d61eb2da7c
commit
206d32a2cd
3 changed files with 12 additions and 0 deletions
|
|
@ -429,6 +429,10 @@ type Configuration struct {
|
|||
// Default: false
|
||||
ComputeFullForwardedFor bool `json:"compute-full-forwarded-for,omitempty"`
|
||||
|
||||
// If the request does not have a request-id, should we generate a random value?
|
||||
// Default: true
|
||||
GenerateRequestId bool `json:"generate-request-id,omitempty"`
|
||||
|
||||
// Adds an X-Original-Uri header with the original request URI to the backend request
|
||||
// Default: true
|
||||
ProxyAddOriginalUriHeader bool `json:"proxy-add-original-uri-header"`
|
||||
|
|
@ -546,6 +550,7 @@ func NewDefault() Configuration {
|
|||
ForwardedForHeader: "X-Forwarded-For",
|
||||
ComputeFullForwardedFor: false,
|
||||
ProxyAddOriginalUriHeader: true,
|
||||
GenerateRequestId: true,
|
||||
HTTP2MaxFieldSize: "4k",
|
||||
HTTP2MaxHeaderSize: "16k",
|
||||
HTTPRedirectCode: 308,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue