optimize upload file speed for webdav

This commit is contained in:
tickstep 2022-01-08 22:08:04 +08:00
parent 4b5a7e9f07
commit 4cf51f24fe
4 changed files with 8 additions and 8 deletions

View File

@ -663,8 +663,8 @@ services:
- ALIYUNPAN_PAN_DIR=/
# 上传下载链接类型1-默认 2-阿里ECS环境
- ALIYUNPAN_TRANSFER_URL_TYPE=1
# 上传数据块大小单位为KB默认为1024KB建议范围512KB~2048KB
- ALIYUNPAN_BLOCK_SIZE=1024
# 上传数据块大小单位为KB默认为10240KB建议范围1024KB~10240KB
- ALIYUNPAN_BLOCK_SIZE=10240
```
### HTTPS配置

View File

@ -38,6 +38,6 @@ ENV ALIYUNPAN_AUTH_PASSWORD=admin
ENV ALIYUNPAN_PAN_DIR=/
ENV ALIYUNPAN_REFRESH_TOKEN=""
ENV ALIYUNPAN_TRANSFER_URL_TYPE=0
ENV ALIYUNPAN_BLOCK_SIZE=1024
ENV ALIYUNPAN_BLOCK_SIZE=10240
ENTRYPOINT ./app.sh

View File

@ -2,7 +2,7 @@ version: '3'
services:
webdav:
image: tickstep/aliyunpan-webdav
image: tickstep/aliyunpan-webdav:tag
container_name: aliyunpan-webdav
restart: always
ports:
@ -19,8 +19,8 @@ services:
- ALIYUNPAN_PAN_DIR=/
# 上传下载链接类型1-默认 2-阿里ECS环境
- ALIYUNPAN_TRANSFER_URL_TYPE=1
# 上传数据块大小单位为KB默认为1024KB建议范围512KB~2048KB
- ALIYUNPAN_BLOCK_SIZE=1024
# 上传数据块大小单位为KB默认为10240KB建议范围1024KB~10240KB
- ALIYUNPAN_BLOCK_SIZE=10240

View File

@ -162,8 +162,8 @@ aliyunpan webdav start -h
},
cli.IntFlag{
Name: "bs",
Usage: "block size上传分片大小单位KB。推荐值512 ~ 2048",
Value: 1024,
Usage: "block size上传分片大小单位KB。推荐值1024 ~ 10240",
Value: 10240,
},
},
},