add qbittorrent to compose
Some checks failed
ci / build (push) Failing after 1m21s
ci / test (push) Failing after 7m41s

This commit is contained in:
CJ_Clippy 2025-09-08 15:15:48 -08:00
parent c3da9e26bc
commit 76f02e34bd
3 changed files with 13 additions and 3 deletions

View File

@ -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:

View File

@ -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",

View File

@ -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 })