Files
truecharts/charts/stable/nextcloud/templates/common.yaml
T
Kjeld Schouten-Lebbing 0e0ab4f5ae feat(nextcloud): add Imaginary high-performance preview backend (#3086)
* feat(nextcloud): add imaginary high-performance preview backend

* reorder common a bit

* add imaginary service

* bump chart feature version

* Update charts/stable/nextcloud/values.yaml

* fix some image references

* whoops

* env

* add imaginary probes

* update FPM container

* add preview generation to cron

* make preview pregen a cronjob function
2022-07-06 21:52:15 +02:00

23 lines
876 B
YAML

{{/* Make sure all variables are set properly */}}
{{- include "tc.common.loader.init" . }}
{{/* Render configmap for nextcloud */}}
{{- include "nextcloud.configmap" . }}
{{- $newMiddlewares := append .Values.ingress.main.fixedMiddlewares "tc-nextcloud-chain" }}
{{- $_ := set .Values.ingress.main "fixedMiddlewares" $newMiddlewares -}}
{{- $_ := set .Values.additionalContainers "nginx" (include "nextcloud.nginx" . | fromYaml) -}}
{{- if .Values.imaginary.enabled -}}
{{- $_ := set .Values.additionalContainers "imaginary" (include "nextcloud.imaginary" . | fromYaml) -}}
{{- end -}}
{{- if .Values.hpb.enabled -}}
{{- $_ := set .Values.additionalContainers "hpb" (include "nextcloud.hpb" . | fromYaml) -}}
{{- end -}}
{{/* Render the templates */}}
{{ include "tc.common.loader.apply" . }}
{{/* Render cronjob for nextcloud */}}
{{- include "nextcloud.cronjob" . }}