From 065e93d7c7395ca0872f450eee8a354fc4139a56 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Tue, 18 Nov 2025 21:43:48 -0500 Subject: [PATCH] Added configuration fields for Aria2 --- roles/bootstrap/templates/aria2/aria2.conf.j2 | 83 +++++++++++++++++++ roles/bootstrap/vars/main/software.yml | 3 + 2 files changed, 86 insertions(+) create mode 100644 roles/bootstrap/templates/aria2/aria2.conf.j2 diff --git a/roles/bootstrap/templates/aria2/aria2.conf.j2 b/roles/bootstrap/templates/aria2/aria2.conf.j2 new file mode 100644 index 0000000..aa003c4 --- /dev/null +++ b/roles/bootstrap/templates/aria2/aria2.conf.j2 @@ -0,0 +1,83 @@ +# Global settings +continue=true +# check-integrity=true +daemon=true +human-readable=true +dir=~/downloads +file-allocation=falloc +log-level=warn +max-concurrent-downloads=3 +max-overall-download-limit=0 + +# RPC settings +enable-rpc=true +rpc-allow-origin-all=true +rpc-max-request-size=10M +rpc-listen-all=true +rpc-listen-port=6800 +rpc-secret=4238c13d1564187cee0a920e2bfa94061907ea627fc66ca158e8041ae6034519 +# rpc-certificate= +# rpc-private-key= +# rpc-secure=true + +# HTTP/FTP/SFTP settings +connect-timeout=120 +timeout=90 +server-stat-of=~/.config/aria2/dl.log +server-stat-if=~/.config/aria2/dl.log +server-stat-timeout=86400 +# checksum=sha-256=4136f0ba800f702afe06026315d94c26b431097c7144a42c363de6136c7a49d0 +max-connection-per-server=5 +max-tries=10 +max-file-not-found=7 +min-split-size=100M +split=7 +retry-wait=10 +netrc-path=~/.netrc +reuse-uri=true +uri-selector=feedback +seed-ratio=1.5 +seed-time=75 + +# HTTP settings +http-accept-gzip=true +http-auth-challenge=true +http-no-cache=true +enable-http-pipelining=true +enable-http-keep-alive=true +save-cookies=~/.config/aria2/cookie.txt +load-cookies=~/.config/aria2/cookie.txt +# user-agent=Mozilla/5.0 + +# FTP/SFTP settings +ftp-pasv=true +ftp-type=binary +ftp-reuse-connection=true +# ssh-host-key-md=sha-256= + +# Bittorrent settings +listen-port=6881-6999 +# bt-hash-check-seed=true +# bt-force-encryption=true +bt-save-metadata=true +bt-load-saved-metadata=true +bt-max-open-files=50 +bt-max-peers=150 +bt-stop-timeout=7200 + +bt-tracker=udp://93.158.213.92:1337/announce,udp://23.134.88.9:6969/announce,udp://23.134.88.9:1337/announce,udp://185.243.218.213:80/announce,udp://89.234.156.205:451/announce,udp://44.30.4.4:6969/announce,udp://23.175.184.30:23333/announce,udp://51.222.82.36:6969/announce,udp://211.75.205.189:80/announce,udp://77.91.85.95:6969/announce,udp://45.13.119.213:6969/announce,udp://43.154.112.29:17272/announce,udp://209.141.59.25:6969/announce,udp://5.255.124.190:6969/announce,udp://152.53.152.105:1984/announce,udp://109.201.134.183:80/announce,udp://111.90.151.241:6969/announce,udp://152.53.152.105:54123/announce,udp://189.69.171.209:6969/announce,udp://151.243.109.110:6969/announce + +bt-tracker-connect-timeout=120 +bt-tracker-timeout=333 +bt-tracker-interval=0 +enable-dht=true +dht-listen-port=6881-6999 +dht-message-timeout=15 +enable-peer-exchange=true +follow-torrent=mem + +# Metalink settings +follow-metalink=mem +metalink-language=en,es,ja +metalink-location=jp,us,ch +# metalink-os=linux \ No newline at end of file diff --git a/roles/bootstrap/vars/main/software.yml b/roles/bootstrap/vars/main/software.yml index 181180f..d014bb1 100644 --- a/roles/bootstrap/vars/main/software.yml +++ b/roles/bootstrap/vars/main/software.yml @@ -293,4 +293,7 @@ config: username: admin # @TODO change this password to ansible-vaulted actual choice password later password: password123 # @NOTE placeholder + aria: + checksum: ~ + secret: ~