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

NameTypeDescription
addresshost:port | unix socket | upstream group | grpc:// or grpcs:// endpointChoose the backend; grpcs enables upstream TLS. Variable addresses require appropriate name resolution.

Working Example

Example Snippetnginx
grpc_pass grpc://127.0.0.1:50051;
Nginx Reference