Mercurial > hg > nginx-quic
comparison auto/modules @ 7233:2713b2dbf5bb
The gRPC proxy module.
The module allows passing requests to upstream gRPC servers.
The module is built by default as long as HTTP/2 support is compiled in.
Example configuration:
grpc_pass 127.0.0.1:9000;
Alternatively, the "grpc://" scheme can be used:
grpc_pass grpc://127.0.0.1:9000;
Keepalive support is available via the upstream keepalive module. Note
that keepalive connections won't currently work with grpc-go as it fails
to handle SETTINGS_HEADER_TABLE_SIZE.
To use with SSL:
grpc_pass grpcs://127.0.0.1:9000;
SSL connections use ALPN "h2" when available. At least grpc-go works fine
without ALPN, so if ALPN is not available we just establish a connection
without it.
Tested with grpc-c++ and grpc-go.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 17 Mar 2018 23:04:24 +0300 |
parents | 87e9e4aabf1b |
children | f2396ecf608b |
comparison
equal
deleted
inserted
replaced
7232:a7ed15573ae9 | 7233:2713b2dbf5bb |
---|---|
742 ngx_module_link=$HTTP_SCGI | 742 ngx_module_link=$HTTP_SCGI |
743 | 743 |
744 . auto/module | 744 . auto/module |
745 fi | 745 fi |
746 | 746 |
747 if [ $HTTP_GRPC = YES -a $HTTP_V2 = YES ]; then | |
748 ngx_module_name=ngx_http_grpc_module | |
749 ngx_module_incs= | |
750 ngx_module_deps= | |
751 ngx_module_srcs=src/http/modules/ngx_http_grpc_module.c | |
752 ngx_module_libs= | |
753 ngx_module_link=$HTTP_GRPC | |
754 | |
755 . auto/module | |
756 fi | |
757 | |
747 if [ $HTTP_PERL != NO ]; then | 758 if [ $HTTP_PERL != NO ]; then |
748 ngx_module_name=ngx_http_perl_module | 759 ngx_module_name=ngx_http_perl_module |
749 ngx_module_incs=src/http/modules/perl | 760 ngx_module_incs=src/http/modules/perl |
750 ngx_module_deps=src/http/modules/perl/ngx_http_perl_module.h | 761 ngx_module_deps=src/http/modules/perl/ngx_http_perl_module.h |
751 ngx_module_srcs=src/http/modules/perl/ngx_http_perl_module.c | 762 ngx_module_srcs=src/http/modules/perl/ngx_http_perl_module.c |