This commit is contained in:
2026-01-25 23:29:04 +08:00
parent 895f6e4bd0
commit 27e7499ad2
8 changed files with 40 additions and 129 deletions

View File

@@ -1,87 +0,0 @@
# ref: p3terx/aria2.conf
## file allocation
# Docker Container 内下载路径(自行挂载)
dir=/downloads
disk-cache=100M
file-allocation=none
no-file-allocation-limit=64M
continue=true
always-resume=false
max-resume-failure-tries=0
remote-time=true
## progress (session)
input-file=/config/aria2.session
save-session=/config/aria2.session
save-session-interval=1
auto-save-interval=20
keep-unfinished-download-result=true
# force-save=true
## Download Options
connect-timeout=10
timeout=10
max-concurrent-downloads=5
max-connection-per-server=16
min-split-size=4M
split=32
piece-length=1M
allow-piece-length-change=true
http-accept-gzip=true
content-disposition-default-utf8=true
## Client Disguise
user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36 Edg/93.0.961.47'
peer-id-prefix=-DE13F0-
user-agent=Deluge 1.3.15
peer-agent=Deluge 1.3.15
## RPC相关设置 ##
enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
# hidden.
rpc-secret=
## BT/PT
listen-port=6888
dht-listen-port=6888
enable-dht=true
enable-dht6=true
dht-file-path=/config/dht.dat
dht-file-path6=/config/dht6.dat
dht-entry-point=dht.transmissionbt.com:6881
dht-entry-point6=dht.transmissionbt.com:6881
bt-enable-lpd=true
enable-peer-exchange=true
rpc-save-upload-metadata=true
bt-save-metadata=true
bt-load-saved-metadata=true
bt-remove-unselected-file=true
follow-torrent=true
bt-force-encryption=true
seed-ratio=1.0
seed-time=0
bt-seed-unverified=true
bt-detach-seed-only=true
bt-tracker-connect-timeout=10
bt-tracker-timeout=10
bt-prioritize-piece=head=32M,tail=32M
# auto update by p3terx's tracker.sh
bt-tracker=

View File

@@ -10,27 +10,25 @@ services:
options:
max-size: 1m
volumes:
- /opt/aria2:/config
- type: bind
source: $HOME/_downloads
target: /downloads
- ${PWD}:/config
# use `.env` file to set other variables
- ${HOME}/downloads:/downloads
restart: 'unless-stopped'
environment:
- PUID=$UID
- PGID=$UID
- PUID=${UID}
- PGID=${GID}
- UMASK_SET=022
ports:
- 16800:6800
- 16888:6888
- 16888:6888/udp
- UPDATE_TRACKERS=true
- TZ=Asia/Shanghai
network_mode: host
ariang:
image: p3terx/ariang
container_name: ariang
command: --port 6880 --ipv6
logging:
driver: json-file
options:
max-size: 1m
restart: 'unless-stopped'
ports:
- 16880:6880
network_mode: host