flzta commited on
Commit
10468e3
·
verified ·
1 Parent(s): 97da724

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -15
Dockerfile CHANGED
@@ -44,34 +44,36 @@ RUN chmod -R 777 /opt/cloudreve/
44
  EXPOSE 5212
45
 
46
  # 设置启动命令
47
- # 1. 后台启动 Aria2,使用优化后的参数
48
  # 2. 前台运行 sync_data.sh 脚本
49
  CMD aria2c --enable-rpc --rpc-listen-port=6800 --rpc-listen-all=true --rpc-allow-origin-all \
50
  --enable-dht=true \
51
- # --- 使用 ngosang/trackerslist 更新的 Tracker 列表 ---
52
  --bt-tracker="udp://tracker.opentrackr.org:1337/announce,udp://open.tracker.cl:1337/announce,udp://tracker.openbittorrent.com:6969/announce,udp://open.stealth.si:80/announce,udp://exodus.desync.com:6969/announce,udp://tracker.torrent.eu.org:451/announce,udp://tracker.moeking.me:6969/announce,udp://tracker.dler.org:6969/announce,udp://tracker.tiny-vps.com:6969/announce,udp://tracker.theoks.net:6969/announce,udp://tracker-udp.gbitt.info:80/announce,udp://ln.mt.unej.cz:6969/announce,udp://ipv4.tracker.harry.lu:80/announce,udp://explodie.org:6969/announce,udp://bt2.archive.org:6969/announce,udp://bt1.archive.org:6969/announce,http://tracker.openbittorrent.com:80/announce,http://tracker.dler.org:6969/announce,http://tracker.opentrackr.org:1337/announce,http://open.tracker.cl:1337/announce,http://ln.mt.unej.cz:6969/announce,https://tracker.tamersunion.org:443/announce,https://tracker.loligirl.cn:443/announce,https://tracker.gbitt.info:443/announce,https://tracker.bz:443/announce,https://opentracker.i2p.rocks:443/announce,https://open.acgnxtracker.com:443/announce,ws://tracker.openwebtorrent.com:80/announce,ws://tracker.btorrent.xyz:80/announce" \
53
- # -------------------------------------------------------
54
- # --- 调整连接数和速度限制 (可根据测试结果再调整) ---
55
  -s 20 \
 
56
  -x 16 \
 
57
  --max-overall-upload-limit=512K \
 
58
  --max-upload-limit=256K \
 
59
  --max-overall-download-limit=0 \
60
- # 移除了行尾注释:暂不限制总下载
61
  --max-download-limit=0 \
62
- # 移除了行尾注释:暂不限制单任务下载
63
- --max-concurrent-downloads=3 \
64
- # 移除了行尾注释:稍微降低并发任务数
65
- # --------------------------------------------------
 
66
  -d /opt/cloudreve/aria2_downloads \
67
  --rpc-secret=1234 \
68
- # --- 日志级别设为 info ---
69
  --console-log-level=info \
70
- # -----------------------
71
  --daemon=true & \
72
  /opt/cloudreve/sync_data.sh
73
 
74
- # 注意:
75
- # 1. 请将 --rpc-secret=YOUR_RPC_SECRET 替换为你自己的密钥,或者直接删除该参数(并在 Cloudreve 后台保持密钥为空)。
76
- # 2. Tracker 列表取自 ngosang/trackerslist 的 trackers_best 和 trackers_all_ws,并进行了合并去重。你可以根据需要自行增删。
77
- # 3. 连接数 (-s 20) 和上传限制 (--max-overall-upload-limit=512K) 是基于之前讨论的建议值,如果速度仍然很慢或不稳定,可以尝试进一步调整这些值(比如更低的连接数,或略高/略低的上传限制)。
 
44
  EXPOSE 5212
45
 
46
  # 设置启动命令
47
+ # 1. 后台启动 Aria2,尝试平衡配置以获得更好速度且避免快速终止
48
  # 2. 前台运行 sync_data.sh 脚本
49
  CMD aria2c --enable-rpc --rpc-listen-port=6800 --rpc-listen-all=true --rpc-allow-origin-all \
50
  --enable-dht=true \
51
+ # --- 使用更新的 Tracker 列表 ---
52
  --bt-tracker="udp://tracker.opentrackr.org:1337/announce,udp://open.tracker.cl:1337/announce,udp://tracker.openbittorrent.com:6969/announce,udp://open.stealth.si:80/announce,udp://exodus.desync.com:6969/announce,udp://tracker.torrent.eu.org:451/announce,udp://tracker.moeking.me:6969/announce,udp://tracker.dler.org:6969/announce,udp://tracker.tiny-vps.com:6969/announce,udp://tracker.theoks.net:6969/announce,udp://tracker-udp.gbitt.info:80/announce,udp://ln.mt.unej.cz:6969/announce,udp://ipv4.tracker.harry.lu:80/announce,udp://explodie.org:6969/announce,udp://bt2.archive.org:6969/announce,udp://bt1.archive.org:6969/announce,http://tracker.openbittorrent.com:80/announce,http://tracker.dler.org:6969/announce,http://tracker.opentrackr.org:1337/announce,http://open.tracker.cl:1337/announce,http://ln.mt.unej.cz:6969/announce,https://tracker.tamersunion.org:443/announce,https://tracker.loligirl.cn:443/announce,https://tracker.gbitt.info:443/announce,https://tracker.bz:443/announce,https://opentracker.i2p.rocks:443/announce,https://open.acgnxtracker.com:443/announce,ws://tracker.openwebtorrent.com:80/announce,ws://tracker.btorrent.xyz:80/announce" \
53
+ # -----------------------------
54
+ # --- 尝试恢复到之前的 "平衡点" 配置 ---
55
  -s 20 \
56
+ # 恢复到稍高连接数 (尝试 20)
57
  -x 16 \
58
+ # 单服务器连接数
59
  --max-overall-upload-limit=512K \
60
+ # 恢复到稍高的上传限制 (尝试 64 KB/s)
61
  --max-upload-limit=256K \
62
+ # 单任务上传
63
  --max-overall-download-limit=0 \
64
+ # 仍然不限制下载,看它能跑多少
65
  --max-download-limit=0 \
66
+ --max-concurrent-downloads=2 \
67
+ # 并发任务数保持较低 (尝试 2)
68
+ --bt-require-crypto=true \
69
+ # 保持强制加密
70
+ # -----------------------------
71
  -d /opt/cloudreve/aria2_downloads \
72
  --rpc-secret=1234 \
73
+ # --- 日志级别使用 info ---
74
  --console-log-level=info \
75
+ # ---------------------
76
  --daemon=true & \
77
  /opt/cloudreve/sync_data.sh
78
 
79
+ # 注意 RPC Secret 和备份间隔 (SYNC_INTERVAL 环境变量)