Closed ljcbaby closed 7 months ago
这是很好的功能, 但是我没用过 Docker 不会写 Dockerfile, 所以...
Dockerfile 等我考完期末可以试试。包括 action
已尝试发布 Docker 版本, 该版本未经测试. https://hub.docker.com/r/simpletracker/qbittorrent-clientblocker/tags Edit: 已通过 Docker Buildx 支持更多平台, 并优化 Dockerfile 减少容器大小.
通过在 Dockerfile 将所有系统环境变量转为 JSON, 达到了避免修改程序的效果, 但不保证所有环境变量均能生效.
# docker run -e "QBURL=http://192.168.1.23:990" qbcb:v1
[2024-01-26 15:03:46][LoadConfig] 读取配置文件成功.
[2024-01-26 15:03:46][LoadConfig-Current] Debug: false.
[2024-01-26 15:03:46][LoadConfig-Current] Interval: 2.
[2024-01-26 15:03:46][LoadConfig-Current] CleanInterval: 3600.
[2024-01-26 15:03:46][LoadConfig-Current] PeerMapCleanInterval: 60.
[2024-01-26 15:03:46][LoadConfig-Current] BanTime: 86400.
[2024-01-26 15:03:46][LoadConfig-Current] SleepTime: 20.
[2024-01-26 15:03:46][LoadConfig-Current] Timeout: 6.
[2024-01-26 15:03:46][LoadConfig-Current] IPUploadedCheck: false.
[2024-01-26 15:03:46][LoadConfig-Current] IPUpCheckInterval: 3600.
[2024-01-26 15:03:46][LoadConfig-Current] IPUpCheckIncrementMB: 180000.
[2024-01-26 15:03:46][LoadConfig-Current] MaxIPPortCount: 0.
[2024-01-26 15:03:46][LoadConfig-Current] BanByProgressUploaded: false.
[2024-01-26 15:03:46][LoadConfig-Current] BanByPUStartMB: 10.
[2024-01-26 15:03:46][LoadConfig-Current] BanByPUStartPrecent: 2.
[2024-01-26 15:03:46][LoadConfig-Current] BanByPUAntiErrorRatio: 5.
[2024-01-26 15:03:46][LoadConfig-Current] BanByRelativeProgressUploaded: false.
[2024-01-26 15:03:46][LoadConfig-Current] BanByRelativePUStartMB: 10.
[2024-01-26 15:03:46][LoadConfig-Current] BanByRelativePUStartPrecent: 2.
[2024-01-26 15:03:46][LoadConfig-Current] BanByRelativePUAntiErrorRatio: 5.
[2024-01-26 15:03:46][LoadConfig-Current] LongConnection: true.
[2024-01-26 15:03:46][LoadConfig-Current] LogToFile: true.
[2024-01-26 15:03:46][LoadConfig-Current] LogDebug: false.
[2024-01-26 15:03:46][LoadConfig-Current] QBURL: http://192.168.1.23:990.
[2024-01-26 15:03:46][LoadConfig-Current] QBUsername: .
[2024-01-26 15:03:46][LoadConfig-Current] QBPassword: .
[2024-01-26 15:03:46][LoadConfig-Current] BlockList: [].
如题