Re: Proxy parameter to nginx service

2017-06-06 Thread Francis Daly
On Mon, Jun 05, 2017 at 04:16:55PM +0200, juan_barbancho_...@cajarural.com 
wrote:

Hi there,

> 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)  "

Stock nginx does not talk to a proxy server.

So you cannot do what you want in nginx without someone writing code.

f
-- 
Francis Dalyfran...@daoine.org
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: Proxy parameter to nginx service

2017-06-06 Thread juan_barbancho_rsi
Hi,

I thought that the use of proxy_pass could be the opction to pass the 
proxy environment var, in the ngnix.conf file.

This may be at general level of only at proxy_pass level.

Could be a improve for the nginx server ?

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
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Re: Proxy parameter to nginx service

2017-06-05 Thread Zhang Chao
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, juan_barbancho_...@cajarural.com (
juan_barbancho_...@cajarural.com) 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

export ftp_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
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Proxy parameter to nginx service

2017-06-05 Thread juan_barbancho_rsi
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
export ftp_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
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx