mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 17:52:13 +08:00
* autobrr * bazarr * briefkasten * castopod * cloudflared * deluge * distribution * drawio * filebrowser * flame * frigaet * fscrawler * grafana * bump missed app * homarr * homepage * homer * jellyfin * jenkins * kapowarr * kavita * komga * lidarr * linkding * listmonk * logseq * metube * minecraft * n8n * navidrome * node-red * omada * paperless * passbolt * pgadmin * pigallery * piwigo * planka * plex auto lang * prowlarr * qbit * radarr * readarr * recyclarr * rust-desk * sabnzbd * searxng * sftpgo * sonarr * tautulli * tdarr * tmm * transmission * 2fauth * unifi * unifi backup * whoogle * wordpress * syncthing-enterprise * immutable type
49 lines
1.5 KiB
Smarty
49 lines
1.5 KiB
Smarty
{{- define "twofauth.persistence" -}}
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
type: {{ .Values.twofauthStorage.config.type }}
|
|
datasetName: {{ .Values.twofauthStorage.config.datasetName | default "" }}
|
|
hostPath: {{ .Values.twofauthStorage.config.hostPath | default "" }}
|
|
targetSelector:
|
|
twofauth:
|
|
twofauth:
|
|
mountPath: /2fauth
|
|
01-permissions:
|
|
mountPath: /mnt/directories/2fauth
|
|
tmp:
|
|
enabled: true
|
|
type: emptyDir
|
|
targetSelector:
|
|
twofauth:
|
|
twofauth:
|
|
mountPath: /tmp
|
|
{{- range $idx, $storage := .Values.twofauthStorage.additionalStorages }}
|
|
{{ printf "twofauth-%v" (int $idx) }}:
|
|
{{- $size := "" -}}
|
|
{{- if $storage.size -}}
|
|
{{- $size = (printf "%vGi" $storage.size) -}}
|
|
{{- end }}
|
|
enabled: true
|
|
type: {{ $storage.type }}
|
|
datasetName: {{ $storage.datasetName | default "" }}
|
|
hostPath: {{ $storage.hostPath | default "" }}
|
|
server: {{ $storage.server | default "" }}
|
|
share: {{ $storage.share | default "" }}
|
|
domain: {{ $storage.domain | default "" }}
|
|
username: {{ $storage.username | default "" }}
|
|
password: {{ $storage.password | default "" }}
|
|
size: {{ $size }}
|
|
{{- if eq $storage.type "smb-pv-pvc" }}
|
|
mountOptions:
|
|
- key: noperm
|
|
{{- end }}
|
|
targetSelector:
|
|
twofauth:
|
|
twofauth:
|
|
mountPath: {{ $storage.mountPath }}
|
|
01-permissions:
|
|
mountPath: /mnt/directories{{ $storage.mountPath }}
|
|
{{- end }}
|
|
{{- end -}}
|