Skip to content

202106-使用最新aria2-pro docker with file upload

一些初始设置

# 将/data/aria2-pro -> ~/aria2-pro之类都设置好
mkdir -p /data/aria2-pro && \
  ln -s /data/aria2-pro ~/aria2-pro && \
  mkdir -p ~/aria2-pro/config ~/aria2-pro/downloads
  
# rclone file + json file 设置好, set up systemd services;并拷贝到~/aria2-pro/config下面
mkdir -p /root/.config/rclone
scp [email protected]:/root/.config/rclone/rclone.conf /root/.config/rclone/rclone.conf
scp -r [email protected]:/root/AutoRclone /root/AutoRclone
### 从远端拷贝所有的 /etc/systemd/system/rclone_*  并确认使用/drive/xxx
cd /etc/systemd/system/
systemctl daemon-reload
systemctl start rclone_*

开启

ARIA2PRO_PWD='Your_Own_Password'

docker run -d \
  --name aria2-pro \
  --restart unless-stopped \
  --log-opt max-size=10m \
  --network host \
  -e PUID=$UID \
  -e PGID=$GID \
  -e RPC_SECRET=${ARIA2PRO_PWD} \
  -e RPC_PORT=6800 \
  -e LISTEN_PORT=16800 \
  -v ~/aria2-pro/config:/config \
  -v ~/aria2-pro/downloads:/downloads \
  -e SPECIAL_MODE=rclone \
  p3terx/aria2-pro
 
 echo 'bt-stop-timeout=10000' >> ~/aria2-pro/config/aria2.conf
 docker exec -it aria2-pro rclone lsd gd_omgd:
 docker logs -f aria2-pro

AriaNG Web界面

cd a3.xx.xx  # 宝塔预先设置好,别开启CDN Proxy
wget -O ariang.zip https://github.com/mayswind/AriaNg/releases/download/1.1.6/AriaNg-1.1.6-AllInOne.zip
unzip ariang.zip

conf配置

cd ~/aria2-pro/config
# 设置rclone 远端硬盘的参数
vi script.sh

# 加上rclone copy到我家里的webdav
vi script/upload.sh

### 
### rclone copy -v "${LOCAL_PATH}" "qhxx_webdav_remote:/webdav_remote/__mv2qhxx/buyvmlv/aria2-pro/"
###

特别注意的是在这个conf当中不能像以前一样加 ‘ ‘

# 用这个可以看的很清楚
docker logs -f aria2-pro 

Leave a Reply

Your email address will not be published.