Skip to content

Commit 7d96109

Browse files
committed
add nextcloud.trustedDomains helm paramter
Adding this directly helps with setting multiple values via helm parameters, instead of needing to pass in a whole config file. Signed-off-by: jessebot <jessebot@linux.com>
1 parent a63b209 commit 7d96109

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

charts/nextcloud/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: nextcloud
3-
version: 5.3.2
3+
version: 5.4.0
44
appVersion: 29.0.4
55
description: A file sharing server that puts the control and security of your own data back into your hands.
66
keywords:

charts/nextcloud/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ The following table lists the configurable parameters of the nextcloud chart and
120120
| `nextcloud.existingSecret.smtpHostKey` | Name of the key that contains the SMTP hostname | `nil` |
121121
| `nextcloud.update` | Trigger update if custom command is used | `0` |
122122
| `nextcloud.containerPort` | Customize container port when not running as root | `80` |
123+
| `nextcloud.trustedDomains` | Optional space-separated list of trusted domains | `[]` |
123124
| `nextcloud.datadir` | nextcloud data dir location | `/var/www/html/data` |
124125
| `nextcloud.mail.enabled` | Whether to enable/disable email settings | `false` |
125126
| `nextcloud.mail.fromAddress` | nextcloud mail send from field | `nil` |

charts/nextcloud/templates/_helpers.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ Create environment variables used to configure the nextcloud container as well a
178178
name: {{ .Values.nextcloud.existingSecret.secretName | default (include "nextcloud.fullname" .) }}
179179
key: {{ .Values.nextcloud.existingSecret.passwordKey }}
180180
- name: NEXTCLOUD_TRUSTED_DOMAINS
181+
{{- if .Values.nextcloud.trustedDomains }}
182+
value: {{ join " " .Values.nextcloud.trustedDomains | quote }}
183+
{{- else }}
181184
value: {{ .Values.nextcloud.host }}{{ if .Values.metrics.enabled }} {{ template "nextcloud.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local{{ end }}
185+
{{- end }}
182186
{{- if ne (int .Values.nextcloud.update) 0 }}
183187
- name: NEXTCLOUD_UPDATE
184188
value: {{ .Values.nextcloud.update | quote }}

charts/nextcloud/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ nextcloud:
9393
datadir: /var/www/html/data
9494
persistence:
9595
subPath:
96+
# if set, we'll template this list to the NEXTCLOUD_TRUSTED_DOMAINS env var
97+
trustedDomains: []
9698
## SMTP configuration
9799
mail:
98100
enabled: false

0 commit comments

Comments
 (0)