Document use-forwarded-headers configmap option.
This commit is contained in:
parent
fa626a605f
commit
94266ff167
1 changed files with 9 additions and 2 deletions
|
@ -103,6 +103,7 @@ The following table shows a configuration option's name, type, and the default v
|
|||
|[proxy-stream-timeout](#proxy-stream-timeout)|string|"600s"|
|
||||
|[proxy-stream-responses](#proxy-stream-responses)|int|1|
|
||||
|[bind-address](#bind-address)|[]string|""|
|
||||
|[use-forwarded-headers](#use-forwarded-headers)|bool|"true"|
|
||||
|[forwarded-for-header](#forwarded-for-header)|string|"X-Forwarded-For"|
|
||||
|[compute-full-forwarded-for](#compute-full-forwarded-for)|bool|"false"|
|
||||
|[proxy-add-original-uri-header](#proxy-add-original-uri-header)|bool|"true"|
|
||||
|
@ -596,6 +597,12 @@ _References:_
|
|||
|
||||
Sets the addresses on which the server will accept requests instead of *. It should be noted that these addresses must exist in the runtime environment or the controller will crash loop.
|
||||
|
||||
## use-forwarded-headers
|
||||
|
||||
If true, nginx passes the incoming `X-Forwarded-*` headers to upstreams. Use this option when nginx is behind another L7 proxy / load balancer that is setting these headers.
|
||||
|
||||
If false, nginx ignores incoming `X-Forwarded-*` headers, filling them with the request information it sees. Use this option if nginx is exposed directly to the internet, or it's behind a L3/packet-based load balancer that doesn't alter the source IP in the packets.
|
||||
|
||||
## forwarded-for-header
|
||||
|
||||
Sets the header field for identifying the originating IP address of a client. _**default:**_ X-Forwarded-For
|
||||
|
|
Loading…
Reference in a new issue