update
This commit is contained in:
parent
c50569d73e
commit
a624163120
27 changed files with 215 additions and 6 deletions
16
proxy_pass/streaming.conf
Normal file
16
proxy_pass/streaming.conf
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue