Spaces:
Paused
Paused
Upload aria2.conf
Browse files- aria2.conf +51 -6
aria2.conf
CHANGED
|
@@ -1,6 +1,51 @@
|
|
| 1 |
-
# 启用 RPC 服务
|
| 2 |
-
enable-rpc=true
|
| 3 |
-
# RPC监听端口
|
| 4 |
-
rpc-listen-port=6800
|
| 5 |
-
# RPC
|
| 6 |
-
rpc-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 启用 RPC 服务
|
| 2 |
+
enable-rpc=true
|
| 3 |
+
# RPC监听端口
|
| 4 |
+
rpc-listen-port=6800
|
| 5 |
+
# 允许所有来源的 RPC 请求
|
| 6 |
+
rpc-allow-origin-all=true
|
| 7 |
+
# RPC 授权令牌,可自行设定(提高安全性)
|
| 8 |
+
rpc-secret=eatyour
|
| 9 |
+
# 最大并发下载数
|
| 10 |
+
max-concurrent-downloads=10
|
| 11 |
+
# 每个服务器的最大连接数
|
| 12 |
+
max-connection-per-server=15
|
| 13 |
+
# 每个下载任务的分片数
|
| 14 |
+
split=64
|
| 15 |
+
# 每个分片的最小大小
|
| 16 |
+
min-split-size=1M
|
| 17 |
+
# 最大重试次数
|
| 18 |
+
max-tries=5
|
| 19 |
+
# 重试等待时间(秒)
|
| 20 |
+
retry-wait=3
|
| 21 |
+
# 连接超时时间(秒)
|
| 22 |
+
connect-timeout=10
|
| 23 |
+
# 超时时间(秒)
|
| 24 |
+
timeout=10
|
| 25 |
+
# 继续下载
|
| 26 |
+
continue=true
|
| 27 |
+
# 以守护进程模式运行
|
| 28 |
+
daemon=true
|
| 29 |
+
# 文件分配策略
|
| 30 |
+
file-allocation=none
|
| 31 |
+
# 磁盘缓存大小
|
| 32 |
+
disk-cache=512M
|
| 33 |
+
# 下载限速(0表示不限制)
|
| 34 |
+
max-overall-download-limit=0
|
| 35 |
+
max-download-limit=0
|
| 36 |
+
# 上传限速(0表示不限制)
|
| 37 |
+
max-overall-upload-limit=0
|
| 38 |
+
max-upload-limit=0
|
| 39 |
+
# 流片选择器
|
| 40 |
+
stream-piece-selector=geom
|
| 41 |
+
# 优化并发下载
|
| 42 |
+
optimize-concurrent-downloads=true
|
| 43 |
+
# 启用 gzip 压缩
|
| 44 |
+
http-accept-gzip=true
|
| 45 |
+
# 其他可选优化
|
| 46 |
+
# 设置日志级别(可选)
|
| 47 |
+
log-level=notice
|
| 48 |
+
# 启用日志记录(可选)
|
| 49 |
+
log-file=/app/aria2.log
|
| 50 |
+
# 启用断点续传(可选)
|
| 51 |
+
enable-http-pipelining=true
|