57 lines
1.8 KiB
YAML
57 lines
1.8 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
|
|
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: cross-seed
|
|
spec:
|
|
refreshInterval: 5m
|
|
secretStoreRef:
|
|
kind: ClusterSecretStore
|
|
name: onepassword-connect
|
|
target:
|
|
name: cross-seed-secret
|
|
template:
|
|
engineVersion: v2
|
|
data:
|
|
config.js: |
|
|
module.exports = {
|
|
action: "inject",
|
|
apiKey: "{{.CROSS_SEED_API_KEY}}",
|
|
delay: 30,
|
|
duplicateCategories: false,
|
|
flatLinking: false,
|
|
includeEpisodes: true,
|
|
includeNonVideos: true,
|
|
includeSingleEpisodes: true,
|
|
linkCategory: "cross-seed",
|
|
linkDir: "/data/nas-media/qb/downloads/complete/cross-seed",
|
|
linkType: "hardlink",
|
|
matchMode: "safe",
|
|
outputDir: "/config",
|
|
port: 80,
|
|
qbittorrentUrl: "http://qbittorrent.qbittorrent.svc.cluster.local",
|
|
radarr: ["http://radarr.default.svc.cluster.local/?apikey={{ .RADARR_API_KEY }}"],
|
|
skipRecheck: true,
|
|
sonarr: ["http://sonarr.default.svc.cluster.local/?apikey={{ .SONARR_API_KEY }}"],
|
|
torrentDir: "/qbittorrent/qBittorrent/BT_backup",
|
|
torznab: []
|
|
/* torznab: [
|
|
6, // ANT
|
|
8, // BLU
|
|
9, // TL
|
|
10, // FL
|
|
12, // FNP
|
|
14, // TD
|
|
].map(i => `http://prowlarr.default.svc.cluster.local/$${i}/api?apikey={{ .PROWLARR_API_KEY }}`),
|
|
*/
|
|
};
|
|
dataFrom:
|
|
- extract:
|
|
key: cross-seed
|
|
- extract:
|
|
key: radarr
|
|
- extract:
|
|
key: sonarr
|
|
- extract:
|
|
key: prowlarr
|