Skip to content

Instantly share code, notes, and snippets.

@ifyour
Last active December 3, 2023 16:36
Show Gist options
  • Save ifyour/2be0055adbaea83881aacaab905afd43 to your computer and use it in GitHub Desktop.
Save ifyour/2be0055adbaea83881aacaab905afd43 to your computer and use it in GitHub Desktop.
Aria2c Configuration Best Practices
## Disk Settings ##
dir = ${HOME}/Downloads
daemon = false
enable-mmap = true
disk-cache = 64M
file-allocation = none
## Download Settings ##
continue = true
split = 16
min-split-size = 1M
max-tries = 3
disable-ipv6 = true
max-connection-per-server = 16
max-download-limit = 0
max-upload-limit = 0
max-overall-upload-limit = 0
max-overall-download-limit = 0
## RPC Settings ##
enable-rpc = true
rpc-allow-origin-all = true
rpc-listen-all = true
rpc-listen-port = 6800
rpc-secret = ifyour
## BT Settings ##
follow-torrent = true
enable-dht = true
enable-dht6 = true
dht-listen-port = 6881-6999
max-connection-per-server = 13
bt-max-peers = 100
bt-metadata-only = true
bt-hash-check-seed = false
bt-enable-lpd = true
seed-ratio = 0.1
enable-peer-exchange = true
bt-seed-unverified = true
dht-file-path = ${HOME}/.aria2/dht.dat
dht-file-path6 = ${HOME}/.aria2/dht6.dat
# You can update it via http://edam.top/tk/
bt-tracker = udp://tracker.opentrackr.org:1337/announce,udp://exodus.desync.com:6969/announce,udp://tracker.cyberia.is:6969/announce,udp://opentracker.i2p.rocks:6969/announce,udp://47.ip-51-68-199.eu:6969/announce,http://explodie.org:6969/announce,http://open.acgnxtracker.com:80/announce,udp://tracker.tiny-vps.com:6969/announce,udp://tracker.ds.is:6969/announce,udp://open.stealth.si:80/announce,udp://www.torrent.eu.org:451/announce,udp://tracker.torrent.eu.org:451/announce,udp://retracker.lanta-net.ru:2710/announce,udp://tracker4.itzmx.com:2710/announce,udp://tracker.moeking.me:6969/announce,udp://ipv4.tracker.harry.lu:80/announce,udp://valakas.rollo.dnsabr.com:2710/announce,udp://opentor.org:2710/announce,http://rt.tace.ru:80/announce,udp://tracker.dler.org:6969/announce
## Advance Options
allow-overwrite = true
log-level = notice
@ifyour
Copy link
Author

ifyour commented Feb 23, 2021

# .zshrc

function runaria {
  aria2c --conf-path="$HOME/.aria2/aria2.conf" -D
  echo "Open WebUI at: https://aria.mingming.dev/ \n"
}

function stoparia {
  killall aria2c
  echo 'Aria2c is killed!'
}

@RedSnt
Copy link

RedSnt commented Dec 3, 2023

According to the documentation enabling "enable-mmap" should have "file-allocation" set to something other than "none" to work properly, so wouldn't "file-alloction=falloc" be better?
Also, "max-connection-per-server" is listed twice with 2 different values.

Otherwise thanks for the conf, makes it a lot easier to set up.

@ifyour
Copy link
Author

ifyour commented Dec 3, 2023

@RedSnt Thank you for your interest, as this configuration file is too old, it may not match the latest version of Aria2c anymore. The latest practices are based on the official documentation 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment