Skip to content

流式响应内容不能流式输出到前端 #6885

Discussion options

You must be logged in to vote

你本地部署的情况下是否有一个 nginx ?看下这个问题: #531

感谢,确实是nginx配置问题,现在已经解决了!!

location / {
	proxy_pass http://lobe;
	proxy_set_header Host $host;
	proxy_set_header X-Real-IP $remote_addr;
	proxy_set_header X-Forwarded-Proto $scheme;
	proxy_cache off;  # 关闭缓存
	proxy_buffering off;  # 关闭代理缓冲
	chunked_transfer_encoding on;  # 开启分块传输编码
	tcp_nopush on;  # 开启TCP NOPUSH选项,禁止Nagle算法
	tcp_nodelay on;  # 开启TCP NODELAY选项,禁止延迟ACK算法
	keepalive_timeout 300;  # 设定keep-alive超时时间为65秒
}

Replies: 25 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by arvinxx
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #6745 on March 11, 2025 02:50.