GRPC从客户端到服务器的转发代理

从nodejs或java中使用grpc,使grpc客户端通过代理连接到服务器所需的属性或configuration是什么?

我一直无法find解释设置的示例或文档。 我需要在代码本身做些什么吗?

我在一个代理后面,我不确定是否问题是我的设置不正确,或者我的代理不支持grpc。 它支持http / 2作为协议升级。

我在java中的代理设置是:

-Dhttp.proxyHost=xxx.xxx.xxx -Dhttp.proxyPort=8888 -Dhttp.nonProxyHosts="*.nowhere.nothing" -Dhttps.proxyHost=xxx.xxx.com -Dhttps.proxyPort=8888 -Dhttps.nonProxyHosts="*.nowhere.nothing" -Dsocks.proxyHost=xxx.xxx.xxx -Dsocks.proxyPort=8888 -Dsocks.nonProxyHosts="*.nowhere.nothing" 

由于grpc-java 1.0.3,您可以使用host:portforms的值来指定环境variablesGRPC_PROXY_EXP 。 “EXP”意味着实验性的,因为它会在grpc-java观察到正常的Java设置(如https.proxyHost )之后被删除。