mirror of
https://github.com/truenas/charts.git
synced 2026-04-26 03:22:45 +08:00
29 lines
815 B
Smarty
29 lines
815 B
Smarty
{{- define "searxng.persistence" -}}
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.searxngStorage.config) | nindent 4 }}
|
|
targetSelector:
|
|
searxng:
|
|
searxng:
|
|
mountPath: /etc/searxng
|
|
01-permissions:
|
|
mountPath: /mnt/directories/searxng
|
|
tmp:
|
|
enabled: true
|
|
type: emptyDir
|
|
targetSelector:
|
|
searxng:
|
|
searxng:
|
|
mountPath: /tmp
|
|
{{- range $idx, $storage := .Values.searxngStorage.additionalStorages }}
|
|
{{ printf "searxng-%v:" (int $idx) }}
|
|
enabled: true
|
|
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
|
|
targetSelector:
|
|
searxng:
|
|
searxng:
|
|
mountPath: {{ $storage.mountPath }}
|
|
{{- end }}
|
|
{{- end -}}
|