31 lines
940 B
YAML
31 lines
940 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: cross-seed-config
|
|
labels:
|
|
app: {{ template "cross-seed.name" . }}
|
|
chart: {{ template "cross-seed.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
data:
|
|
config.js: |
|
|
module.exports = {
|
|
torrentClients: [
|
|
{
|
|
type: "qbittorrent",
|
|
url: "{{ .Values.config.qbittorrentUrl }}",
|
|
username: process.env.QBITTORRENT_USERNAME,
|
|
password: process.env.QBITTORRENT_PASSWORD
|
|
}
|
|
],
|
|
host: "{{ .Values.config.host }}",
|
|
port: {{ .Values.config.port }},
|
|
torrentDir: "{{ .Values.config.torrentDir }}",
|
|
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}`
|
|
]
|
|
};
|