markokocic commented on issue #10292:
URL: https://github.com/apache/apisix/issues/10292#issuecomment-1764309421

   Ok, since APISIX upstreams relies on Nginx, looks like it will never support 
`https_proxy`, since Nginx doesn't have any plans to add it.
   
   The only solution so far that I found working is to use an external relay 
application like **redsocks** that will intercept outgoing https requests and 
forward them to the actual HTTP CONNECT proxy. That redirection can be set up 
on Linux level using `iptables`.
   
   I used https://github.com/ncarlier/dockerfiles/tree/master/redsocks as a 
starting point to implement proxying upstreams.
   
   Maybe it would be good to update `upstream` documentation to explicitly 
mention that proxies are not supported, and a possible workaround.


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to