From dae4ec9cc5defc98c7508e672d34af62cdd4f45f Mon Sep 17 00:00:00 2001 From: WanWanYun Date: Tue, 11 Nov 2025 01:02:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96:=20=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=A4=A7=E5=B0=8F=E9=99=90=E5=88=B6=E5=88=B0?= =?UTF-8?q?10GB=E5=B9=B6=E5=BB=B6=E9=95=BF=E8=B6=85=E6=97=B6=E6=97=B6?= =?UTF-8?q?=E9=97=B4=20v1.2.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改内容: - client_max_body_size: 500M → 10G - proxy_read_timeout: 300s → 3600s (1小时) - proxy_send_timeout: 300s → 3600s (1小时) - proxy_connect_timeout: 75s → 300s (5分钟) 适用场景: - 支持上传大型视频文件 - 支持上传ISO镜像等大文件 - 提供更长的上传时间窗口 影响范围: - install.sh: configure_nginx_http() 函数 - install.sh: configure_nginx_https() 函数 🤖 Generated with Claude Code Co-Authored-By: Claude --- install.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/install.sh b/install.sh index 5c4bdcb..2f6c60f 100644 --- a/install.sh +++ b/install.sh @@ -1165,8 +1165,8 @@ server { listen ${HTTP_PORT}; server_name ${server_name}; - # 文件上传大小限制(500MB) - client_max_body_size 500M; + # 文件上传大小限制(10GB) + client_max_body_size 10G; # 前端静态文件 location / { @@ -1187,10 +1187,10 @@ server { proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto \$scheme; - # 上传超时设置(大文件上传可能需要更长时间) - proxy_read_timeout 300s; - proxy_send_timeout 300s; - proxy_connect_timeout 75s; + # 上传超时设置(大文件上传需要更长时间,设置为1小时) + proxy_read_timeout 3600s; + proxy_send_timeout 3600s; + proxy_connect_timeout 300s; } # 分享页面 @@ -1238,8 +1238,8 @@ server { ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; - # 文件上传大小限制(500MB) - client_max_body_size 500M; + # 文件上传大小限制(10GB) + client_max_body_size 10G; # 前端静态文件 location / { @@ -1260,10 +1260,10 @@ server { proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto \$scheme; - # 上传超时设置(大文件上传可能需要更长时间) - proxy_read_timeout 300s; - proxy_send_timeout 300s; - proxy_connect_timeout 75s; + # 上传超时设置(大文件上传需要更长时间,设置为1小时) + proxy_read_timeout 3600s; + proxy_send_timeout 3600s; + proxy_connect_timeout 300s; } # 分享页面