Skip to content

Commit

Permalink
nginx conf
Browse files Browse the repository at this point in the history
  • Loading branch information
archmagece committed Jan 2, 2024
1 parent 853f3c7 commit 2c89e6f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/nextcloud/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: nextcloud
version: 4.5.38
version: 4.5.39
appVersion: 28.0.1
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
Expand Down
2 changes: 2 additions & 0 deletions charts/nextcloud/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ Create volume mounts for the nextcloud container as well as the cron sidecar con
{{- define "nextcloud.volumeMounts" -}}
- name: nextcloud-config
mountPath: /var/www/html/config/
- name: nextcloud-nginx-config
mountPath: /etc/nginx/conf.d/
{{/*
files >>>
*/}}
Expand Down
9 changes: 9 additions & 0 deletions charts/nextcloud/templates/nextcloud-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ spec:
- name: fpm-volume-permission
image: busybox
imagePullPolicy: IfNotPresent
# 33, 82
{{ $chown_no := ternary "88:88" "33:33" .Values.nginx.enabled -}}
command: [ 'chown','-R', '33:33', {{ .Values.persistence.nextcloudData.mountPath | squote }}, {{ .Values.persistence.nextcloudCustomApps.mountPath | squote }} ]
securityContext:
runAsUser: 0
Expand Down Expand Up @@ -266,6 +268,13 @@ spec:
{{- toYaml . | nindent 8 }}
{{- else }}
{{- end }}{{/* end-with podSecurityContext */}}
{{- if .Values.nginx.enabled }}
# Will mount configuration files as www-data (id: 82) for nextcloud
fsGroup: 82
{{- else }}
# Will mount configuration files as www-data (id: 33) for nextcloud
fsGroup: 33
{{- end }}
{{- if .Values.rbac.enabled }}
serviceAccountName: {{ .Values.rbac.serviceaccount.name }}
{{- end }}

0 comments on commit 2c89e6f

Please sign in to comment.