Grpc-web: gRPC-web nginx module does not work with latest nginx v1.15.6

Created on 12 Nov 2018  路  3Comments  路  Source: grpc/grpc-web

Hi,

I have compiled nginx 1.15.6 with the custom nginx module found in this repo successfully. The commit I used for nginx is: https://nginx.googlesource.com/nginx/+/13a0072553ac718a26220f68747cd2875dec52e2

Then I used this grpc-web-enabled nginx in the echo example, but I got errors.
After that I realized that nginx is a submodule in this repo and it is fixed to this commit: https://nginx.googlesource.com/nginx/+/6feddd653e37517f888d8ba7a38ceb4f71063818

Compiling this version of nginx makes the echo example work again.
This is more than 1 and a half year old version of nginx, v1.11.13.
Is this a known issue and is there a plan to make this nginx module work with newer versions of nginx?

All 3 comments

Unfortunately, there is currently no plan to make sure the custom grpc-web module works with later version of Nginx. Our tests rely on the fact that the third_party/nginx module is pinned to this older version.

@dalu Yes. This module translates between grpc-web and grpc protocols. So in your nginx config you can proxy (with grpc_pass) to your grpc service behind nginx.

Yea. We kind of have an example on how you can use this Nginx grpc-web module here: https://github.com/grpc/grpc-web/blob/master/net/grpc/gateway/docker/nginx/Dockerfile

You will need to compile with something similar to make standalone-proxy and need a nginx.conf with a grpc_pass config line like this: https://github.com/grpc/grpc-web/blob/master/net/grpc/gateway/examples/echo/nginx.conf#L24

Was this page helpful?
0 / 5 - 0 ratings

Related issues

barrymichaeldoyle picture barrymichaeldoyle  路  4Comments

aberasarte picture aberasarte  路  6Comments

developerlaoz picture developerlaoz  路  3Comments

peteringram0 picture peteringram0  路  5Comments

jmzwcn picture jmzwcn  路  6Comments