Skip to content

Commit

Permalink
v6.22 #2538
Browse files Browse the repository at this point in the history
DietPi-Software | Aria2: Config tweak/fix
  • Loading branch information
MichaIng authored Feb 11, 2019
2 parents 1272bf9 + 0a90f86 commit 48c8d83
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -11106,22 +11106,18 @@ _EOF_

G_BACKUP_FP /var/lib/dietpi/dietpi-software/installed/aria2.conf
cat << _EOF_ > /var/lib/dietpi/dietpi-software/installed/aria2.conf
# host is where aria2c is running on
host=localhost
dir=$G_FP_DIETPI_USERDATA/$FOLDER_DOWNLOADS
# cleanup_policy
cleanup-policy=clean_got
cleanup-percent=90%
# The fallowing options are aria2c options as usual aria2.conf file
# https://aria2.github.io/manual/en/html/aria2c.html
# Download directory
dir=$G_FP_DIETPI_USERDATA/$FOLDER_DOWNLOADS
# RPC Options
enable-rpc=true
rpc-listen-all=true
rpc-listen-port=6800
rpc-secret=$GLOBAL_PW
rpc-allow-origin-all=true
pause=false
# General Options
Expand All @@ -11133,6 +11129,9 @@ continue=true
check-integrity=true
max-concurrent-downloads=$(Optimize_BitTorrent 1)
max-connection-per-server=$(Optimize_BitTorrent 1)
# Bandwidth limits: https://aria2.github.io/manual/en/html/aria2c.html#cmdoption-max-overall-upload-limit
max-overall-download-limit=0
max-overall-upload-limit=0
max-file-not-found=3
max-tries=5
retry-wait=60
Expand All @@ -11148,21 +11147,10 @@ max-download-limit=0
seed-ratio=0.1
seed-time=0
metalink-servers=$(Optimize_BitTorrent 2)
allow-overwrite=false
always-resume=true
auto-file-renaming=false
file-allocation=none
[limit-options]
max-concurrent-downloads=$(Optimize_BitTorrent 1)
max-overall-download-limit=1000K
max-overall-upload-limit=100K
[unlimit-options]
max-concurrent-downloads=$(Optimize_BitTorrent 1)
max-overall-download-limit=0
max-overall-upload-limit=0
_EOF_

cat << _EOF_ > /etc/systemd/system/aria2.service
Expand Down

0 comments on commit 48c8d83

Please sign in to comment.