[patch] 禁用ks3代理
This commit is contained in:
@@ -110,7 +110,6 @@ def upload_installer(connection, installer_path):
|
|||||||
|
|
||||||
# Upload file with public read permission and progress tracking
|
# Upload file with public read permission and progress tracking
|
||||||
# Use cb parameter for progress callback (called every 5% or every 10MB)
|
# Use cb parameter for progress callback (called every 5% or every 10MB)
|
||||||
# 🔥 启用分片上传提高大文件上传成功率
|
|
||||||
key.set_contents_from_filename(
|
key.set_contents_from_filename(
|
||||||
str(installer_path),
|
str(installer_path),
|
||||||
headers={
|
headers={
|
||||||
@@ -122,9 +121,7 @@ def upload_installer(connection, installer_path):
|
|||||||
},
|
},
|
||||||
policy='public-read', # Set ACL policy
|
policy='public-read', # Set ACL policy
|
||||||
cb=progress_callback, # Progress callback function
|
cb=progress_callback, # Progress callback function
|
||||||
num_cb=10, # Call callback 10 times during upload (every 10%)
|
num_cb=10 # Call callback 10 times during upload (every 10%)
|
||||||
multipart=True, # 🔥 启用分片上传
|
|
||||||
chunk_size=10485760 # 🔥 10MB每片,提高上传稳定性
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Generate download URL (using KS3 third-level domain format)
|
# Generate download URL (using KS3 third-level domain format)
|
||||||
@@ -157,7 +154,6 @@ def main():
|
|||||||
logger.info(f"Bucket: {KS3_BUCKET}")
|
logger.info(f"Bucket: {KS3_BUCKET}")
|
||||||
logger.info(f"Target directory: {KS3_PREFIX}")
|
logger.info(f"Target directory: {KS3_PREFIX}")
|
||||||
logger.info("Proxy disabled: Direct connection to KS3")
|
logger.info("Proxy disabled: Direct connection to KS3")
|
||||||
logger.info("Multipart upload: Enabled (10MB chunks)")
|
|
||||||
logger.info("=" * 70)
|
logger.info("=" * 70)
|
||||||
|
|
||||||
installer_path = find_latest_installer()
|
installer_path = find_latest_installer()
|
||||||
|
|||||||
Reference in New Issue
Block a user