# Use HTTP/1.1 only in explicit streaming locations. Keeping this out of the # default forwarded.conf avoids changing connection semantics for every proxy. proxy_http_version 1.1; # Disable buffering so SSE, token streams, and other incremental responses can # flush chunks immediately instead of waiting for nginx to coalesce them. proxy_buffering off; # Disable request buffering as well for duplex APIs and streaming uploads. Put # this behind an opt-in snippet because large upload endpoints may want the # default buffered behavior instead. proxy_request_buffering off; # gzip can delay flushes by collecting more bytes before compression. Turn it # off in explicit streaming locations even if gzip is enabled globally. gzip off;