gRPC-web proxy that works with Javascript in browser

In order to access libra gRPC services directly from browser, we need a proxy to convert gRPC to gRPC-web. It is a stateless pure protocol conversion.

I use Envoy to do so, and I would like to share my Envoy configuration: https://github.com/the729/go-libra/tree/master/tools/envoy

I have also built a docker image. Just run the following cmd and the proxy is up running on port 38080 (or any other port you’d like).

docker run -d --name envoy-libra -p 38080:8080 wutianji/envoy-libra

Works great with the gopherjs-libra Javascript library.

1 Like