HTTP gRPC directives
grpc_pass directive
location, if in location; no default. Selects a gRPC backend address or group; grpc:// is cleartext, grpcs:// uses TLS.
Formal Syntax & Structure
nginx syntaxnginx
grpc_pass address;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| address | host:port | unix socket | upstream group | grpc:// or grpcs:// endpoint | Choose the backend; grpcs enables upstream TLS. Variable addresses require appropriate name resolution. |
Working Example
Example Snippetnginx
grpc_pass grpc://127.0.0.1:50051;