forked from shuuzhoou/doubi
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Toyo
authored
Aug 28, 2017
1 parent
dcb97f4
commit 9e04a64
Showing
1 changed file
with
52 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,101 +1,101 @@ | ||
## '#'��ͷΪע������, ѡ�����Ӧ��ע��˵��, ������Ҫ�� ## | ||
## ��ע�͵�ѡ����д����Ĭ��ֵ, ��������Ҫ��ʱ��ȡ��ע�� ## | ||
## '#'开头为注释内容, 选项都有相应的注释说明, 根据需要修改 ## | ||
## 被注释的选项填写的是默认值, 建议在需要修改时再取消注释 ## | ||
|
||
## �ļ�������� ## | ||
## 文件保存相关 ## | ||
|
||
# �ļ��ı���·��(��ʹ�þ���·�������·��), Ĭ��: ��ǰ����λ�� | ||
# 文件的保存路径(可使用绝对路径或相对路径), 默认: 当前启动位置 | ||
dir=/usr/local/caddy/www/aria2/Download | ||
# ���ô��̻���, 0Ϊ���û���, ��1.16���ϰ汾, Ĭ��:16M | ||
# 启用磁盘缓存, 0为禁用缓存, 需1.16以上版本, 默认:16M | ||
#disk-cache=32M | ||
# �ļ�Ԥ���䷽ʽ, ����Ч���ʹ�����Ƭ, Ĭ��:prealloc | ||
# Ԥ��������ʱ��: none < falloc ? trunc < prealloc | ||
# falloc��trunc����Ҫ�ļ�ϵͳ���ں�֧�� | ||
# NTFS����ʹ��falloc, EXT3/4����trunc, MAC ����Ҫע�ʹ��� | ||
file-allocation=none | ||
# �ϵ����� | ||
# 文件预分配方式, 能有效降低磁盘碎片, 默认:prealloc | ||
# 预分配所需时间: none < falloc ? trunc < prealloc | ||
# falloc和trunc则需要文件系统和内核支持 | ||
# NTFS建议使用falloc, EXT3/4建议trunc, MAC 下需要注释此项 | ||
# file-allocation=none | ||
# 断点续传 | ||
continue=true | ||
|
||
## ����������� ## | ||
## 下载连接相关 ## | ||
|
||
# ���ͬʱ����������, ����ʱ����, Ĭ��:5 | ||
# 最大同时下载任务数, 运行时可修改, 默认:5 | ||
max-concurrent-downloads=10 | ||
# ͬһ������������, ����ʱ��ָ��, Ĭ��:1 | ||
# 同一服务器连接数, 添加时可指定, 默认:1 | ||
max-connection-per-server=5 | ||
# ��С�ļ���Ƭ��С, ����ʱ��ָ��, ȡֵ��Χ1M -1024M, Ĭ��:20M | ||
# �ٶ�size=10M, �ļ�Ϊ20MiB ��ʹ��������Դ����; �ļ�Ϊ15MiB ��ʹ��һ����Դ���� | ||
# 最小文件分片大小, 添加时可指定, 取值范围1M -1024M, 默认:20M | ||
# 假定size=10M, 文件为20MiB 则使用两个来源下载; 文件为15MiB 则使用一个来源下载 | ||
min-split-size=10M | ||
# ������������߳���, ����ʱ��ָ��, Ĭ��:5 | ||
# 单个任务最大线程数, 添加时可指定, 默认:5 | ||
split=20 | ||
# ���������ٶ�����, ����ʱ����, Ĭ��:0 | ||
# 整体下载速度限制, 运行时可修改, 默认:0 | ||
#max-overall-download-limit=0 | ||
# �������������ٶ�����, Ĭ��:0 | ||
# 单个任务下载速度限制, 默认:0 | ||
#max-download-limit=0 | ||
# �����ϴ��ٶ�����, ����ʱ����, Ĭ��:0 | ||
# 整体上传速度限制, 运行时可修改, 默认:0 | ||
max-overall-upload-limit=1M | ||
# ���������ϴ��ٶ�����, Ĭ��:0 | ||
# 单个任务上传速度限制, 默认:0 | ||
#max-upload-limit=1000 | ||
# ����IPv6, Ĭ��:false | ||
# 禁用IPv6, 默认:false | ||
disable-ipv6=false | ||
|
||
## ���ȱ������ ## | ||
## 进度保存相关 ## | ||
|
||
# �ӻỰ�ļ��ж�ȡ�������� | ||
# 从会话文件中读取下载任务 | ||
input-file=/root/.aria2/aria2.session | ||
# ��Aria2�˳�ʱ����`����/δ���`���������Ự�ļ� | ||
# 在Aria2退出时保存`错误/未完成`的下载任务到会话文件 | ||
save-session=/root/.aria2/aria2.session | ||
# ��ʱ����Ự, 0Ϊ�˳�ʱ�ű���, ��1.16.1���ϰ汾, Ĭ��:0 | ||
# 定时保存会话, 0为退出时才保存, 需1.16.1以上版本, 默认:0 | ||
#save-session-interval=60 | ||
|
||
## RPC������� ## | ||
## RPC相关设置 ## | ||
|
||
# ����RPC, Ĭ��:false | ||
# 启用RPC, 默认:false | ||
enable-rpc=true | ||
# ����������Դ, Ĭ��:false | ||
# 允许所有来源, 默认:false | ||
rpc-allow-origin-all=true | ||
# �������ⲿ����, Ĭ��:false | ||
# 允许非外部访问, 默认:false | ||
rpc-listen-all=true | ||
# �¼���ѯ��ʽ, ȡֵ:[epoll, kqueue, port, poll, select], ��ͬϵͳĬ��ֵ��ͬ | ||
# 事件轮询方式, 取值:[epoll, kqueue, port, poll, select], 不同系统默认值不同 | ||
#event-poll=select | ||
# RPC�����˿�, �˿ڱ�ռ��ʱ������, Ĭ��:6800 | ||
# RPC监听端口, 端口被占用时可以修改, 默认:6800 | ||
rpc-listen-port=6800 | ||
# ���õ�RPC��Ȩ����, v1.18.4��������, ȡ�� --rpc-user �� --rpc-passwd ѡ�� | ||
# 设置的RPC授权令牌, v1.18.4新增功能, 取代 --rpc-user 和 --rpc-passwd 选项 | ||
rpc-secret=doub.io | ||
# ���õ�RPC�����û���, ��ѡ���°��ѷ���, ������� --rpc-secret ѡ�� | ||
# 设置的RPC访问用户名, 此选项新版已废弃, 建议改用 --rpc-secret 选项 | ||
#rpc-user=<USER> | ||
# ���õ�RPC��������, ��ѡ���°��ѷ���, ������� --rpc-secret ѡ�� | ||
# 设置的RPC访问密码, 此选项新版已废弃, 建议改用 --rpc-secret 选项 | ||
#rpc-passwd=<PASSWD> | ||
|
||
## BT/PT������� ## | ||
## BT/PT下载相关 ## | ||
|
||
# �����ص���һ������(��.torrent��β)ʱ, �Զ���ʼBT����, Ĭ��:true | ||
# 当下载的是一个种子(以.torrent结尾)时, 自动开始BT任务, 默认:true | ||
follow-torrent=true | ||
# BT�����˿�, ���˿ڱ�����ʱʹ��, Ĭ��:6881-6999 | ||
# BT监听端口, 当端口被屏蔽时使用, 默认:6881-6999 | ||
listen-port=51413 | ||
# �����������������, Ĭ��:55 | ||
# 单个种子最大连接数, 默认:55 | ||
#bt-max-peers=55 | ||
# ��DHT����, PT��Ҫ����, Ĭ��:true | ||
# 打开DHT功能, PT需要禁用, 默认:true | ||
enable-dht=true | ||
# ��IPv6 DHT����, PT��Ҫ���� | ||
# 打开IPv6 DHT功能, PT需要禁用 | ||
#enable-dht6=false | ||
# DHT��������˿�, Ĭ��:6881-6999 | ||
# DHT网络监听端口, 默认:6881-6999 | ||
#dht-listen-port=6881-6999 | ||
# ���ؽڵ����, PT��Ҫ����, Ĭ��:false | ||
# 本地节点查找, PT需要禁用, 默认:false | ||
#bt-enable-lpd=true | ||
# ���ӽ���, PT��Ҫ����, Ĭ��:true | ||
# 种子交换, PT需要禁用, 默认:true | ||
enable-peer-exchange=true | ||
# ÿ����������, �����ֵ�PT������, Ĭ��:50K | ||
# 每个种子限速, 对少种的PT很有用, 默认:50K | ||
#bt-request-peer-speed-limit=50K | ||
# �ͻ���αװ, PT��Ҫ | ||
# 客户端伪装, PT需要 | ||
peer-id-prefix=-TR2770- | ||
user-agent=Transmission/2.77 | ||
# �����ӵķ����ʴﵽ�����ʱ, �Զ�ֹͣ����, 0Ϊһֱ����, Ĭ��:1.0 | ||
# 当种子的分享率达到这个数时, 自动停止做种, 0为一直做种, 默认:1.0 | ||
seed-ratio=0.1 | ||
# ǿ�Ʊ���Ự, ��ʹ�����Ѿ����, Ĭ��:false | ||
# ���µİ汾���������������ɺ���Ȼ����.aria2�ļ� | ||
# 强制保存会话, 即使任务已经完成, 默认:false | ||
# 较新的版本开启后会在任务完成后依然保留.aria2文件 | ||
#force-save=false | ||
# BTУ�����, Ĭ��:true | ||
# BT校验相关, 默认:true | ||
#bt-hash-check-seed=true | ||
# ����֮ǰ��BT����ʱ, �����ٴ�У��, Ĭ��:false | ||
# 继续之前的BT任务时, 无需再次校验, 默认:false | ||
bt-seed-unverified=true | ||
# �����������Ԫ����Ϊ�����ļ�(.torrent�ļ�), Ĭ��:false | ||
# 保存磁力链接元数据为种子文件(.torrent文件), 默认:false | ||
#bt-save-metadata=true |