media: fix cross-seed config for qbittorrent

This commit is contained in:
gilgamezh
2026-01-18 13:21:41 +01:00
parent 1becccb339
commit 9a6d7670f4
3 changed files with 25 additions and 11 deletions
@@ -10,12 +10,18 @@ metadata:
data:
config.js: |
module.exports = {
qbittorrentUrl: "{{ .Values.config.qbittorrentUrl }}",
qbittorrentUsername: process.env.QBITTORRENT_USERNAME,
qbittorrentPassword: process.env.QBITTORRENT_PASSWORD,
torrentClients: [
{
type: "qbittorrent",
url: "{{ .Values.config.qbittorrentUrl }}",
username: process.env.QBITTORRENT_USERNAME,
password: process.env.QBITTORRENT_PASSWORD
}
],
torrentDir: "{{ .Values.config.torrentDir }}",
outputDir: "{{ .Values.config.outputDir }}",
linkDirs: {{ toJson .Values.config.linkDirs }},
dataDirs: {{ toJson .Values.config.dataDirs }},
outputDir: {{ toJson .Values.config.outputDir }},
action: "{{ .Values.config.action }}",
torznab: [
`{{ .Values.config.torznabBaseUrl }}?t=search&apikey=${process.env.NZBGEEK_API_KEY}`
]
+7 -3
View File
@@ -29,10 +29,11 @@ command:
config:
qbittorrentUrl: "http://qbittorrent.default.svc.cluster.local:8080"
torrentDir: "/data/torrents"
outputDir: "/data/torrents/.cross-seed"
linkDirs:
torrentDir: "/qbittorrent-config/qBittorrent/BT_backup"
dataDirs:
- "/data/torrents"
outputDir: null
action: "inject"
torznabBaseUrl: "https://api.nzbgeek.info/api"
secret:
@@ -74,6 +75,9 @@ volumeMounts:
- name: config
mountPath: "/config/config.js"
subPath: "config.js"
- name: plex-data
mountPath: "/qbittorrent-config"
subPath: "configs/qbittorrent"
- name: plex-data
mountPath: "/data/torrents"
subPath: "torrent"