Skip to content

Instantly share code, notes, and snippets.

@Birdie0
Last active July 29, 2023 17:44
Show Gist options
  • Save Birdie0/7adb94425a8744c6b003df6d59fc5ad6 to your computer and use it in GitHub Desktop.
Save Birdie0/7adb94425a8744c6b003df6d59fc5ad6 to your computer and use it in GitHub Desktop.
Aria2
[Unit]
Description=aria2 Daemon
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/aria2c --conf-path=%h/.config/aria2/aria2-server.conf
Restart=on-failure
[Install]
WantedBy=default.target
# aria2
input-file=${HOME}/.config/aria2/aria2.session
save-session=${HOME}/.config/aria2/aria2.session
save-session-interval=60
force-save=true
quiet=true
# download
continue=true
dir=${HOME}/Downloads
max-connection-per-server=16
max-concurrent-downloads=5
optimize-concurrent-downloads=true
file-allocation=falloc
summary-interval=0
# rpc
enable-rpc=true
rpc-listen-all=true
rpc-listen-port=6800
rpc-secret=[insert secret here]
# torrents
bt-enable-lpd=true
check-integrity=true
seed-ratio=0.0
listen-port=6881-6999
dht-listen-port=6881-6999
# download
continue=true
max-connection-per-server=16
max-concurrent-downloads=5
optimize-concurrent-downloads=true
file-allocation=falloc
## on windows:
# file-allocation=none
summary-interval=0
# torrents
bt-enable-lpd=true
check-integrity=true
seed-ratio=0.0
listen-port=6881-6999
dht-listen-port=6881-6999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment