Skip to content

Commit

Permalink
fix: 延长超时时间
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Jun 13, 2024
1 parent bc7ca98 commit e6acd5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ server {
return 204;
}
proxy_pass http://backend:5000;
proxy_read_timeout 300; # 设置读超时为300秒
proxy_connect_timeout 300; # 设置连接超时为300秒
proxy_send_timeout 300; # 设置发送超时为300秒
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
Expand Down

0 comments on commit e6acd5a

Please sign in to comment.