Skip to content

Commit 1a80740

Browse files
Fix nginx streaming without caching the response (opea-project#797)
* Fix nginx streaming without caching the response Signed-off-by: lvliang-intel <[email protected]> * add gzip off Signed-off-by: lvliang-intel <[email protected]> --------- Signed-off-by: lvliang-intel <[email protected]>
1 parent 9a00a3e commit 1a80740

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

comps/nginx/nginx.conf.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ server {
1616
proxy_set_header X-Real-IP $remote_addr;
1717
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
1818
proxy_set_header X-Forwarded-Proto $scheme;
19+
20+
proxy_buffering off;
21+
proxy_cache off;
22+
proxy_request_buffering off;
23+
gzip off;
1924
}
2025

2126
location /v1/${BACKEND_SERVICE_NAME} {

0 commit comments

Comments
 (0)