From 76f02e34bd6f5d073118c4669270825a6b27815f Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Mon, 8 Sep 2025 15:15:48 -0800 Subject: [PATCH] add qbittorrent to compose --- services/our/compose.production.yaml | 10 ++++++++++ services/our/package.json | 4 ++-- services/our/src/utils/qbittorrent/qbittorrent.ts | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/services/our/compose.production.yaml b/services/our/compose.production.yaml index 9bbebce..130fc34 100644 --- a/services/our/compose.production.yaml +++ b/services/our/compose.production.yaml @@ -62,6 +62,16 @@ services: volumes: - /mnt/vfs/futureporn:/mnt/vfs/futureporn + qbittorrent: + image: gitea.futureporn.net/futureporn/qbittorrent-nox:latest + container_name: qbittorrent + env_file: ./.env + networks: + - default + init: false + volumes: + - /mnt/vfs/futureporn:/mnt/vfs/futureporn + volumes: pgdata: diff --git a/services/our/package.json b/services/our/package.json index 6ad01e5..574a8e4 100644 --- a/services/our/package.json +++ b/services/our/package.json @@ -1,7 +1,7 @@ { "name": "futureporn-our", "private": true, - "version": "2.6.0", + "version": "2.7.0", "type": "module", "scripts": { "dev": "concurrently npm:dev:serve npm:dev:build:server npm:dev:build:client npm:dev:worker npm:dev:compose npm:dev:sftp npm:dev:qbittorrent", @@ -11,7 +11,7 @@ "dev:build": "echo please use either dev:build:server or dev:build:client", "dev:build:server": "chokidar 'src/**/*.{js,ts}' --ignore 'src/client/**' -c tsup --clean", "dev:build:client": "chokidar 'src/client/**/*.{js,css}' -c 'node build.mjs'", - "dev:qbittorrent": "npx @dotenvx/dotenvx run -f ../../.env.development.local -- docker run --rm --name fp-dev-qbittorrent --tmpfs /tmp -e QBT_LEGAL_NOTICE -e QBT_TORRENTING_PORT -e QBT_WEBUI_PORT -e QBT_DISABLE_NETWORK -e QBT_USERNAME -e QBT_PASSWORD -p 8083:8083 gitea.futureporn.net/futureporn/qbittorrent-nox:latest", + "dev:qbittorrent": "npx @dotenvx/dotenvx run -f ../../.env.development.local -- sh -c 'docker run --rm --name fp-dev-qbittorrent -e QBT_LEGAL_NOTICE -e QBT_TORRENTING_PORT -e QBT_WEBUI_PORT -e QBT_DISABLE_NETWORK -e QBT_USERNAME -e QBT_PASSWORD -v \"$CACHE_ROOT\":\"$CACHE_ROOT\" -p 8083:8083 gitea.futureporn.net/futureporn/qbittorrent-nox:latest'", "dev:sftp": "docker run -p 2222:22 --rm atmoz/sftp user:pass:::watch", "start": "echo please use either start:server or start:worker; exit 1", "start:server": "tsx ./src/index.ts", diff --git a/services/our/src/utils/qbittorrent/qbittorrent.ts b/services/our/src/utils/qbittorrent/qbittorrent.ts index 487f61e..686bd0c 100644 --- a/services/our/src/utils/qbittorrent/qbittorrent.ts +++ b/services/our/src/utils/qbittorrent/qbittorrent.ts @@ -233,7 +233,7 @@ export class QBittorrentClient { logger.debug('the request to poll for torrent status was successful.') const statusMap = (await res.json()) as TorrentCreatorTaskStatusMap; - logger.debug({ statusMap: statusMap }) + logger.trace({ statusMap: statusMap }) const task = Object.values(statusMap).find((t) => t.taskID === taskId); logger.debug({ task: task })