Directive reference
grpc_pass
Proxies a request to a gRPC backend.
| Syntax | grpc_pass grpc://address | grpcs://address; |
|---|---|
| Contexts | locationif in location |
| Default | none |
Behavior
HTTP/2 data and trailers are forwarded in both directions; grpc-status remains a trailer.
Example
location /helloworld.Greeter/ {
grpc_pass grpc://127.0.0.1:50051;
} Related directives
grpc_set_header