Revolyssup commented on issue #1948:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/1948#issuecomment-1702612794

   @JoniJnm Btw, you can pass `x-forwarded-for` in request header and that will 
be used as an override value. So if you're sending the request to port 80 then 
you can set it as that. `X-forwarded-for` is technically the destination port 
which client used to communicate with the load Balancer. In complex 
environments, APISIX might be sitting behind multiple firewalls and other 
reverse proxies and could be transparent to client. Therefore it can be 
impossible to figure out which destination port originally the client had sent 
the request for. 
   
   So I would suggest you to manually add `X-FORWARDED-PORT`  from whichever 
client the request is being made to APISIX. This can be done when the client is 
some internal service. If these requests are from external clients which cannot 
set this header then I am afraid this is not possible.
   
   Though I am interested in how you achieved this using Ingress configuration 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to