You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
arthas/arthas-grpc-web-proxy
x956 3745f08752
add arthas-grpc-web-proxy module (#2668)
2 years ago
..
src add arthas-grpc-web-proxy module (#2668) 2 years ago
README.md add arthas-grpc-web-proxy module (#2668) 2 years ago
pom.xml add arthas-grpc-web-proxy module (#2668) 2 years ago

README.md

netty grpc web proxy

from: https://github.com/grpc/grpc-web/tree/1.4.2/src/connector

原项目已废弃删除,本项目改用 netty 来做转发。

缺点

原项目需要 .proto 文件编译的 .class才能运行,比如GreeterGrpc,本项目同样有这个问题。

测试

工程导入IDE之后,进入test目录

在 com.taobao.arthas.grpcweb.proxy.server.GrpcWebProxyServerTest 启动测试

也可以用原项目的相关工程来测试

开发验证

可以用其它的 grpc web proxy来抓包辅助验证。

用 envoy

下载envoy 后,可以用本项目里的envoy.yaml

  • envoy --config-path ./envoy.yaml

使用 grpcwebproxy

下载后,启动:

  • grpcwebproxy --backend_addr 127.0.0.1:9090 --run_tls_server=false --allow_all_origins