use of different http_proxy env. var

33 views
Skip to first unread message

zde...@sojma.cz

unread,
Nov 7, 2017, 3:55:15 AM11/7/17
to grpc.io
Hello, is there a way how to set proxy address with use of different environment variable than "http_proxy"? We have a asp.net core 2.0 application which uses two clients, one for HTTP and other for gRPC. We use Linkerd to proxy requests and we set a proxy address for HTTP with use of "http_proxy" environment variable. Linkerd is not able to proxy HTTP and HTTP/2 requests on the same port, therefore we need to use different env. variable to set proxy address for gRPC.

Thank you.

yas...@google.com

unread,
Nov 21, 2017, 7:29:28 PM11/21/17
to grpc.io
Nope, gRPC uses the "http_proxy" environment variable. You will probably have to set different environment variables based on your usecase.

Nathaniel Manista

unread,
Nov 21, 2017, 7:37:11 PM11/21/17
to zde...@sojma.cz, grpc.io
On Tue, Nov 7, 2017 at 12:55 AM, <zde...@sojma.cz> wrote:
Hello, is there a way how to set proxy address with use of different environment variable than "http_proxy"? We have a asp.net core 2.0 application which uses two clients, one for HTTP and other for gRPC. We use Linkerd to proxy requests and we set a proxy address for HTTP with use of "http_proxy" environment variable. Linkerd is not able to proxy HTTP and HTTP/2 requests on the same port, therefore we need to use different env. variable to set proxy address for gRPC.

You may wish to add your thoughts to issue 11751.
-Nathaniel

z.s...@gmail.com

unread,
Nov 22, 2017, 1:35:55 AM11/22/17
to grpc.io
I solved it by setting "no_proxy=$http_proxy" for current process of grpc client and set the client to send requests directly to linkerd proxy address.

Dne úterý 7. listopadu 2017 9:55:15 UTC+1 zde...@sojma.cz napsal(a):
Reply all
Reply to author
Forward
0 new messages