Hi I think it is tough by nguni itself, maybe you can use the ngx_lua, save the environment to Nginx variable, and use them in proxy_pass.
On 5 June 2017 at 22:17:05, [email protected] ( [email protected]) wrote: Hi Guys, I need to use nginx to made a proxy_pass to some url, but I need to pass some proxy param in order to do not get the connection " upstream timed out (110: Connection timed out) " Some people know how I could pass the proxy envirnoment to nginx software. export http_proxy=http://USERNAME:PASSWORD@IP_PROXY:PORT_PROXY export https_proxy=http://USERNAME:PASSWORD@IP_PROXY:PORT_PROXY <http://USERNAME:PASSWORD@ip_proxy:port_proxy/> export ftp_proxy=http://USERNAME:PASSWORD@IP_PROXY:PORT_PROXY <http://USERNAME:PASSWORD@ip_proxy:port_proxy/> export no_proxy=localhost, 127.0.0.0/8,127.0.1.1,127.0.1.1*,local.home, This confign run well in curl or yum. Saludos Juanp ------------ ADVERTENCIA LEGAL --------------- "Este mensaje puede contener INFORMACIÓN CONFIDENCIAL, PRIVILEGIADA y/o DATOS DE CARÁCTER PERSONAL. Si usted no es el destinatario indicado en este mensaje (o el responsable de entregarlo al mismo) no debe copiar o entregar este mensaje a nadie más. En dicho caso le rogamos que destruya este mensaje y lo notifique al remitente. Por favor, indique inmediatamente si usted o su empresa no aceptan comunicaciones de este tipo por Internet. Las opiniones, conclusiones y demás información incluida en este mensaje que no esté relacionada con asuntos profesionales del Grupo Caja Rural se entenderá que nunca se ha dado, ni está respaldada por el mismo." ------------ LEGAL ADVICE --------------- "This message can contain restricted confidential information or personal data. If you are not the intended recipient (or the responsible to give it) you shouldn't copy or forward this message. If this message has been received by mistake, please, delete it and inform to addressee. If you or your company don't accept this kind of information by internet, please send us a notification inmediately. Grupo Caja Rural are not responsible for the opinions, conclusions, contents or any file attached included in this message, which were not related to professional matters.” ----------------------------------------------- _______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
