#############
# Generic Settings
#############

quiet=true
enable-color=false

# Disable unnecessary features
no-netrc=true
realtime-chunk-checksum=false

#############
# File Allocation
#############

auto-file-renaming=false
content-disposition-default-utf8=true
disk-cache=64M
file-allocation=falloc
no-file-allocation-limit=8M
allow-overwrite=true
allow-piece-length-change=true
enable-mmap=true

#############
# Logging
#############

console-log-level=error
log-level=notice
log=logs/aria2.log

#############
# Connection Settings
#############

remote-time=true
conditional-get=true
# Can also masquarade as Wget: Wget/1.21
user-agent=github_com_T145/black-mirror
http-no-cache=true
http-accept-gzip=true

# Unlimited download settings
max-overall-download-limit=0
#max-connection-per-server=8
max-connection-per-server=16
split=32
max-concurrent-downloads=50
min-split-size=8M

# Most stealth-mode services usually cap connections at three:
# if hardened servers kick us off use the settings below
#max-connection-per-server=3
#max-concurrent-downloads=20

# https://aria2.github.io/manual/en/html/aria2c.html#cmdoption-optimize-concurrent-downloads
# Tweaking A & B in OCD may yield faster downloads
optimize-concurrent-downloads=true

# AAAA record lookups are slow
disable-ipv6=true
# DNS providers in paired usage order:
## Quad9 Unsecured (https://www.quad9.net/service/service-addresses-and-features#unsec)
## DNSWatch (https://dns.watch/)
async-dns-server=9.9.9.10:53,149.112.112.10:53,84.200.69.80:53,84.200.70.40:53

#############
# Error Handling
#############

timeout=30
connect-timeout=30
max-tries=5
retry-wait=10
max-file-not-found=1