-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kong nginx_kong.lua template overrides request proxy headers #1615
Comments
We would welcome a pull request for this. |
Ok. I see what I can do. |
Just to contribute another scenario to this issue: AWS adds an |
I merely added this like the nginx_optimizations setting:
I couldn't see if #1662 changes this option, but I'll refrain from making a pull request at this stage. Also, I did not see if there's tests for configuration template behavior where I could add my change. I went with the assumption that the variable is by default true, maintaining 0.9.x settings. |
We would really appreciate it, in addition to #1662 (I feel like both of those options are essential to have at this point, that is being able to disable the
Definitely, see https://github.com/Mashape/kong/blob/master/spec/01-unit/03-prefix_handler_spec.lua#L37. At this time, we are still waiting for some tests in #1662, but we might add them ourselves for an upcoming 0.9.4 release. |
Summary
These lines from 84 to 87 in default Nginx config template override X-Real-IP, X-Forwarded-For and X-Forwarded-Proto headers in request that Kong makes for client to the API. We have multiple proxies between client and API in addition of Kong, so we need to put this information forward through all of them as is.
I can work around this by using my own nginx_kong.lua template, but this means essentially forking this whole important piece of the configuration. Perhaps this part of the config could be made configuration dependent?
Steps To Reproduce
Additional Details & Logs
The text was updated successfully, but these errors were encountered: