-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharia2.conf
110 lines (100 loc) · 5.06 KB
/
aria2.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
## The beginning of'#' is the comment content, the options have corresponding comment descriptions, modify as needed##
## The commented option is filled with the default value, it is recommended to cancel the comment when you need to modify it##
## File saving related##
# File save path (absolute path or relative path can be used), default: current startup location
dir=/usr/local/caddy/www/aria2/download
# Enable disk caching, 0 to disable caching, version 1.16 or above is required, default: 16M
#disk-cache=32M
# File preallocation method, which can effectively reduce disk fragmentation, default: prealloc
# Preallocation time: none <falloc? Trunc <prealloc
# falloc and trunc need file system and kernel support
# NTFS recommends use of falloc, EXT3/4 recommends trunc, this item needs to be commented under MAC
file-allocation=none
# http
continue=true
## Download connection related##
# Maximum number of simultaneous download tasks, can be modified during runtime, default: 5
max-concurrent-downloads=10
# The number of connections to the same server, can be specified when adding, default: 1
max-connection-per-server=5
# The minimum file fragment size, which can be specified when adding, the value range is 1M -1024M, default: 20M
# Assuming size=10M, if the file is 20MiB, use two sources to download; if the file is 15MiB, use one source to download
min-split-size=10M
# The maximum number of threads for a single task, can be specified when adding, default: 5
split=20
# Overall download speed limit, can be modified at runtime, default: 0
#max-overall-download-limit=0
# Single task download speed limit, default: 0
#max-download-limit=0
# Overall upload speed limit, can be modified at runtime, default: 0
max-overall-upload-limit=1M
# Single task upload speed limit, default: 0
#max-upload-limit=1000
# Disable IPv6, default: false
disable-ipv6=false
## Progress saving related##
# Read the download task from the session file
input-file=/root/.aria2/aria2.session
# Save the download task of `error/incomplete` to the session file when Aria2 exits
save-session=/root/.aria2/aria2.session
# Save the session regularly, 0 means save when exiting, version 1.16.1 or above is required, default: 0
save-session-interval=60
## RPC related settings##
# Enable RPC, default: false
enable-rpc=true
# Allow all sources, default: false
rpc-allow-origin-all=true
# Allow non-external access, default: false
rpc-listen-all=true
# Event polling mode, value: [epoll, kqueue, port, poll, select], different system default values are different
#event-poll=select
# RPC listening port, can be modified when the port is occupied, default: 6800
rpc-listen-port=6800
# Set RPC authorization token, new features in v1.18.4, replace --rpc-user and --rpc-passwd options
rpc-secret=password
# Set RPC access user name, the new version of this option is obsolete, it is recommended to use the --rpc-secret option instead
#rpc-user=<USER>
# Set RPC access password, the new version of this option is obsolete, it is recommended to use the --rpc-secret option instead
#rpc-passwd=<PASSWD>
# Whether to enable SSL/TLS encryption for RPC service,
# RPC service needs to use https or wss protocol connection after encryption is enabled
#rpc-secure=true
# The certificate file (.pem/.crt) when SSL/TLS encryption is enabled in the RPC service
#rpc-certificate=/root/xxx.pem
# The private key file (.key) when SSL/TLS encryption is enabled in the RPC service
#rpc-private-key=/root/xxx.key
## BT/PT download related##
# When downloading a torrent (ends with .torrent), automatically start BT task, default: true
follow-torrent=true
# BT listening port, used when the port is blocked, default: 6881-6999
listen-port=51413
# The maximum number of connections for a single seed, default: 55
#bt-max-peers=55
# Turn on the DHT function, PT needs to be disabled, default: true
enable-dht=true
# Open IPv6 DHT function, PT needs to be disabled
#enable-dht6=false
# DHT network monitoring port, default: 6881-6999
#dht-listen-port=6881-6999
# Local node search, PT needs to be disabled, default: false
bt-enable-lpd=true
# Seed exchange, PT needs to be disabled, default: true
enable-peer-exchange=true
# Each seed speed limit, useful for PT with less seed, default: 50K
#bt-request-peer-speed-limit=50K
# Client camouflage, PT needs
peer-id-prefix=-TR2770-
user-agent=Transmission/2.77
# When the share rate of the seed reaches this number, it will automatically stop seeding, 0 means always seeding, default: 1.0
seed-ratio=0.0
seed-time=0
# Force to save the session, even if the task has been completed, default: false
# After the newer version is opened, the .aria2 file will remain after the task is completed
force-save=true
# BT verification related, default: true
#bt-hash-check-seed=true
# When continuing the previous BT task, there is no need to verify again, default: false
bt-seed-unverified=true
# Save the magnetic link metadata as a torrent file (.torrent file), default: false
#bt-save-metadata=true
on-download-complete=/home/ubuntu/aria2_moveto_rclonedrv.sh