Add proxy protocol support for X-Forwarded-Port
Fixes https://github.com/kubernetes/ingress-nginx/issues/4951
This commit is contained in:
parent
12aa72622a
commit
665f924e9e
3 changed files with 7 additions and 2 deletions
|
|
@ -105,7 +105,6 @@ end
|
|||
-- phases or redirection
|
||||
function _M.rewrite(location_config)
|
||||
ngx.var.pass_access_scheme = ngx.var.scheme
|
||||
ngx.var.pass_server_port = ngx.var.server_port
|
||||
ngx.var.best_http_host = ngx.var.http_host or ngx.var.host
|
||||
|
||||
if config.use_forwarded_headers then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue