perf: 优化阿里云连接超时时长为10秒,支持配置环境变量

This commit is contained in:
xiaojunnuo
2026-03-11 23:10:37 +08:00
parent dd999b60a4
commit 1588461633
7 changed files with 67 additions and 3 deletions
+4
View File
@@ -38,6 +38,10 @@ COPY ./patch/ssh2/*.js /app/node_modules/.pnpm/node_modules/ssh2/lib/protocol/
ENV LEGO_VERSION=4.30.1
ENV LEGO_DOWNLOAD_DIR=/app/tools/lego
ENV ALIYUN_CLIENT_CONNECT_TIMEOUT=10000
ENV ALIYUN_CLIENT_READ_TIMEOUT=20000
RUN mkdir -p $LEGO_DOWNLOAD_DIR
# 根据架构下载不同的文件