HTTP gRPC directives
grpc_next_upstream directive
http, server, location. Default error timeout. Selects eligible failures for a next-peer attempt; never replay a partially delivered response. This is the older-compatible subset, excluding newer commercial conditions. Current docs also list denied from 1.29.3 for commercial subscriptions; this is excluded from the baseline grammar. The off example is conservative for replay-sensitive requests.
Formal Syntax & Structure
nginx syntaxnginx
grpc_next_upstream error | timeout | invalid_header | http_500 | http_502 | http_503 | http_504 | http_403 | http_404 | http_429 | non_idempotent | off ...;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| condition | error | timeout | invalid_header | http_500 | http_502 | http_504 | http_503 | http_403 | http_404 | http_429 | non_idempotent | off (repeatable) | Select pre-response failover triggers; non_idempotent explicitly permits risky replays. off disables failover. Baseline OSS syntax. |
Working Example
Example Snippetnginx
grpc_next_upstream off;