-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Feature request: use X-Forwarded-Host
from the reverse proxy before
#910
Comments
Please use quay.io/aledbf/nginx-ingress-controller:0.153 This image contains PR #911 |
Thanks for extremely quick response :D ! Awesome! I will try your image soon. The same problem appears for the Thanks for your work! Really awesome this controller! |
@LoicMahieu what change do you suggest? I think we already have this in the template with
|
Yes yes! You are right! I am currently testing it. Works for |
Is it a right thing to do? X-Forwarded* headers just accumulate values as requests passes through proxies. Setting other headers based on them doesn't sound like a good idea, especially in a generic ingress config. More specifically #911 breaks terribly when |
To add some context to this and @redbaron's comment. We had a production outage in one of our systems last night caused by the introduction of a CDN at the front of Apache and some nginx ingress; it took a while to figure out what it was the |
I don't think the title of this issue is clear. Feel free to edit ;)
I use the nginx ingress controller behind a another nginx which is from my legacy infrastructure, moving progressively to Kubernetes.
Everything works perfectly except the
X-Forwarded-Host
. Basically, my old legacy nginx uses aproxy_set_header
for forwarding the original HTTP host (like ingress controller does).The ingress controller uses the
X-Forwarded-For
but not theX-Forwarded-Host
.We can see in the
nginx.tmpl
:Do you think it could be reliable/secure to add make
X-Forwarded-Host
the priority for the$best_http_host
variable ?The text was updated successfully, but these errors were encountered: