title: 树莓派:Rclone+aria2做Onedrive离线下载机 tags: [] id: '2088' categories:
Rclone使用自建应用挂上了Ondrive,接下来就该配置aria2+自动上传脚本了。
version: "3.8"
services:
Aria2-Pro:
container_name: aria2-pro
image: p3terx/aria2-pro
environment:
- PUID=$UID
- PGID=$GID
- UMASK_SET=000
- RPC_SECRET=******
- RPC_PORT=16800
- LISTEN_PORT=51413
- DISK_CACHE=64M
- IPV6_MODE=true # 需要网络完整支持 IPv6 ,否则会导致部分功能异常,甚至无法下载
- UPDATE_TRACKERS=true
- TZ=Asia/Shanghai
- SPECIAL_MODE=rclone
volumes:
- ./aria2-config:/config
- /home/share/aria2:/downloads
# If you use host network mode, then no port mapping is required.
# This is the easiest way to use IPv6 networks.
network_mode: host
# network_mode: bridge
# ports:
# - 6800:6800
# - 6888:6888
# - 6888:6888/udp
restart: unless-stopped
# Since Aria2 will continue to generate logs, limit the log size to 1M to prevent your hard disk from running out of space.
logging:
driver: json-file
options:
max-size: 1m
script.conf
文件中的网盘名称(drive-name
)和网盘路径(drive-dir
)这两个选项的值;注意网盘路径前有注释,配置时需去掉#