Using gRPC nginx gateway

babu vel babuvel_d at hotmail.com
Fri Jun 4 07:54:00 UTC 2021


Hi,

Am using nginx 1.17.3 version and trying to enable http2 and gRPC gateway. I compiled it enabling http_v2 and gRPC module. However, am still getting below error reporting unknown directive "grpc_pass", can you please let me know what is the issue here?

# nginx -c /nginx/conf/grpc.conf -t
nginx: [emerg] unknown directive "grpc_pass" in /nginx/conf/grpc.conf:165
nginx: configuration file /nginx/conf/grpc.conf test failed
#

# cat -n /nginx/conf/grpc.conf | grep -i http2
    88          listen       443 http2 default_server;
# cat -n /nginx/conf/grpc.conf | grep -i grpc
    83      upstream backend_grpc {
    84          server unix:/tmp/nginx_local/grpc_be_management.sock;
   165              grpc_pass grpc://backend_grpc;
   166              set $grpc_client_cert_auth 1;
   168                  set $grpc_client_cert_auth 0;
   171              #grpc_read_timeout 2000000;
   173              #grpc_set_header cl_cert_s_dn $ssl_client_s_dn;
   174              #grpc_set_header cl_cert_status $grpc_client_cert_auth;
#

# strings nginx | grep grpc_pass
grpc_pass
grpc_pass_header
# strings nginx | grep http_v2
ngx_http_v2_get_static_name
ngx_http_v2_init
ngx_http_v2_get_indexed_header
ngx_http_v2_string_encode
ngx_http_v2_filter_module
ngx_http_v2_module
ngx_http_v2_read_request_body
ngx_http_v2_add_header
ngx_http_v2_table_size
ngx_http_v2_huff_encode
ngx_http_v2_push_stream
ngx_http_v2_get_static_value
ngx_http_v2_huff_decode
ngx_http_v2_close_stream
ngx_http_v2_send_output_queue
ngx_http_v2_read_unbuffered_request_body
invalid parameter "spdy": ngx_http_spdy_module was superseded by ngx_http_v2_module
invalid directive "%V": ngx_http_spdy_module was superseded by ngx_http_v2_module
#

Regards,
Babu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20210604/89822fe8/attachment.htm>


More information about the nginx mailing list