xin

Directive reference

grpc_pass

Proxies a request to a gRPC backend.

Syntaxgrpc_pass grpc://address | grpcs://address;
Contextslocationif in location
Defaultnone

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