Skip to content

Commit 7394c10

Browse files
fmenabejessebot
andauthored
Allow to set environment variables to Nginx container (#566)
Signed-off-by: François Ménabé <francois.menabe@gmail.com> Co-authored-by: JesseBot <jessebot@linux.com>
1 parent e39ca2a commit 7394c10

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

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: 4.6.8
3+
version: 4.6.9
44
appVersion: 29.0.0
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
@@ -147,6 +147,7 @@ The following table lists the configurable parameters of the nextcloud chart and
147147
| `nginx.config.custom` | Specify a custom config for nginx | `{}` |
148148
| `nginx.resources` | nginx resources | `{}` |
149149
| `nginx.securityContext` | Optional security context for the nginx container | `nil` |
150+
| `nginx.extraEnv` | Optional environment variables for the nginx container | `nil` |
150151
| `lifecycle.postStartCommand` | Specify deployment lifecycle hook postStartCommand | `nil` |
151152
| `lifecycle.preStopCommand` | Specify deployment lifecycle hook preStopCommand | `nil` |
152153
| `redis.enabled` | Whether to install/use redis for locking | `false` |

charts/nextcloud/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ spec:
149149
- name: {{ .Chart.Name }}-nginx
150150
image: "{{ .Values.nginx.image.repository }}:{{ .Values.nginx.image.tag }}"
151151
imagePullPolicy: {{ .Values.nginx.image.pullPolicy }}
152+
{{- with .Values.nginx.extraEnv }}
153+
env:
154+
{{- toYaml . | nindent 12 }}
155+
{{- end }}
152156
ports:
153157
- name: http
154158
protocol: TCP

charts/nextcloud/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ nginx:
245245
# runAsNonRoot: true
246246
# readOnlyRootFilesystem: true
247247

248+
## Extra environment variables
249+
extraEnv: []
250+
# - name: SOME_ENV
251+
# value: ENV_VALUE
252+
248253
internalDatabase:
249254
enabled: true
250255
name: nextcloud

0 commit comments

Comments
 (0)