-
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
Update X-Forwarded-Port #86
Conversation
@@ -197,7 +202,7 @@ http { | |||
{{ end }} | |||
|
|||
# map port 442 to 443 for header X-Forwarded-Port | |||
map $pass_port $server_port { | |||
map $pass_port $pass_server_port { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure about this 442 to 443 entry so I left it as is.
@@ -107,6 +107,11 @@ http { | |||
default $http_x_forwarded_proto; | |||
'' $scheme; | |||
} | |||
|
|||
map $http_x_forwarded_proto $pass_server_port { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean http_x_forwarded_port
right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes sorry - I edited it on the fly.
fixed by #91 |
Flush queue periodically
It appears this package is assuming the port running on the Ingress Controller as the port.
In the current situation, if my LB sends X-Forwarded-Port: 443 and the ingress controller is running on port 80. X-Forwarded-Port: 80 will end up in my app.
Now it's correctly routing.