level 1
纵酒35
楼主
nginx代理之后设置超时时间不生效,还是默认60s就超时怎么解决
下面是我在http和server中的配置,默认端口改成11435了



前端请求60s就会超时,504报错

在nginx的错误日志中报错
2026/01/16 13:29:51 [error] 8932#20136: *38 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while reading response header from upstream, client: 127.0.0.1, server: syjtgc.cn, request: "POST /api/chat HTTP/1.1", upstream: "http://127.0.0.1:11435/api/chat%22, host: "http://syjtgc.cn:3030", referrer: "https://servicewechat.com/wxc46f4baeda1f62b6/devtools/page-frame.html%22
求大佬,怎么解决
2026年01月16日 08点01分
1
下面是我在http和server中的配置,默认端口改成11435了



前端请求60s就会超时,504报错
在nginx的错误日志中报错2026/01/16 13:29:51 [error] 8932#20136: *38 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while reading response header from upstream, client: 127.0.0.1, server: syjtgc.cn, request: "POST /api/chat HTTP/1.1", upstream: "http://127.0.0.1:11435/api/chat%22, host: "http://syjtgc.cn:3030", referrer: "https://servicewechat.com/wxc46f4baeda1f62b6/devtools/page-frame.html%22
求大佬,怎么解决