diff --git a/nginx.conf b/nginx.conf index b8caf71f..5729e577 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,6 +5,18 @@ server { # 关键:允许上传最大100MB client_max_body_size 100m; + # 超时时间 + proxy_connect_timeout 300s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; + client_body_timeout 300s; + send_timeout 300s; + + # 防止大文件上传被缓冲卡死 + proxy_request_buffering off; + proxy_buffering off; + + location /admin-api/ { proxy_pass http://besure_server:48081; proxy_set_header Host $host;