From b3675933fced59a73986ae2a6ad642c717d01f2c Mon Sep 17 00:00:00 2001 From: sHa Date: Wed, 17 Jun 2026 01:09:59 +0300 Subject: [PATCH] fix(rflood): set HOME=/config and flood --auth none --rtsocket for jesec - HOME=/config makes rtorrent read /config/.rtorrent.rc and use /config/session/ - flood --auth none disables login requirement - flood --rtsocket points to socket path from rtorrent.rc - rtorrentSocket value used consistently in both configmap and command args Co-Authored-By: Claude Sonnet 4.6 --- rflood/Chart.yaml | 2 +- rflood/templates/configmap.yaml | 2 +- rflood/templates/deployment.yaml | 11 +++++++++-- rflood/values.yaml | 6 +++++- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/rflood/Chart.yaml b/rflood/Chart.yaml index b929918..a45efb3 100644 --- a/rflood/Chart.yaml +++ b/rflood/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: rflood description: rTorrent + Flood (jesec/rtorrent-flood) Helm chart type: application -version: 0.2.2 +version: 0.2.3 appVersion: "4.14.2" annotations: version-source: dockerhub-tags-pattern:jesec/rtorrent-flood:^[0-9]+\.[0-9]+\.[0-9]+$ diff --git a/rflood/templates/configmap.yaml b/rflood/templates/configmap.yaml index 188c197..3612fd7 100644 --- a/rflood/templates/configmap.yaml +++ b/rflood/templates/configmap.yaml @@ -7,7 +7,7 @@ data: rtorrent.rc: | session.path.set = /config/session/ directory.default.set = /data - network.scgi.open_local = /config/rtorrent.sock + network.scgi.open_local = {{ .Values.rtorrentSocket }} network.port_range.set = {{ .Values.torrentPort }}-{{ .Values.torrentPort }} network.port_random.set = no network.max_open_files.set = 600 diff --git a/rflood/templates/deployment.yaml b/rflood/templates/deployment.yaml index 0958150..e782ee8 100644 --- a/rflood/templates/deployment.yaml +++ b/rflood/templates/deployment.yaml @@ -41,13 +41,20 @@ spec: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.env }} + command: ["/sbin/tini", "--"] + args: + - flood + - --rtsocket + - {{ .Values.rtorrentSocket }} + {{- if .Values.floodNoAuth }} + - --auth + - none + {{- end }} env: {{- range $key, $value := .Values.env }} - name: {{ $key }} value: {{ $value | quote }} {{- end }} - {{- end }} ports: - containerPort: {{ .Values.webuiPort }} name: webui diff --git a/rflood/values.yaml b/rflood/values.yaml index 57865c8..3ab0e3c 100644 --- a/rflood/values.yaml +++ b/rflood/values.yaml @@ -19,7 +19,11 @@ securityContext: runAsGroup: 1001 fsGroup: 1001 -env: {} +rtorrentSocket: /config/rtorrent.sock +floodNoAuth: true + +env: + HOME: /config resources: requests: