From b077dd83c242c6baa6c1ac720bd4e982c0c77985 Mon Sep 17 00:00:00 2001 From: Default User Date: Wed, 14 Jan 2026 09:47:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BAOSS=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B6=85=E6=97=B6=E8=AE=BE=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=A4=A7=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oss-uploader.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oss-uploader.js b/oss-uploader.js index 69cbc3a..9347ff7 100644 --- a/oss-uploader.js +++ b/oss-uploader.js @@ -25,7 +25,10 @@ function initOSSClient() { bucket: ossConfig.bucket, endpoint: ossConfig.endpoint, // 直接使用配置的endpoint,不添加前缀 secure: true, // 启用HTTPS - cname: false // 对于标准OSS域名,不需要启用cname模式 + cname: false, // 对于标准OSS域名,不需要启用cname模式 + timeout: 600000, // 设置超时时间为10分钟,适应大文件上传 + connectTimeout: 60000, // 连接超时时间1分钟 + socketTimeout: 600000 // socket超时时间10分钟 }); return client;