55 lines
2.0 KiB
Smarty
55 lines
2.0 KiB
Smarty
{{- define "immich.config" -}}
|
|
{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}}
|
|
|
|
configmap:
|
|
server-config:
|
|
enabled: true
|
|
data:
|
|
SERVER_PORT: {{ .Values.service.main.ports.main.port | quote }}
|
|
{{- with .Values.immich.public_login_page_message }}
|
|
PUBLIC_LOGIN_PAGE_MESSAGE: {{ . }}
|
|
{{- end }}
|
|
|
|
micro-config:
|
|
enabled: true
|
|
data:
|
|
MICROSERVICES_PORT: {{ .Values.service.microservices.ports.microservices.port | quote }}
|
|
REVERSE_GEOCODING_DUMP_DIRECTORY: {{ .Values.persistence.microcache.targetSelector.microservices.microservices.mountPath }}
|
|
|
|
{{- if .Values.immich.enable_ml }}
|
|
ml-config:
|
|
enabled: true
|
|
data:
|
|
NODE_ENV: production
|
|
MACHINE_LEARNING_PORT: {{ .Values.service.machinelearning.ports.machinelearning.port | quote }}
|
|
MACHINE_LEARNING_CACHE_FOLDER: {{ .Values.persistence.mlcache.targetSelector.machinelearning.machinelearning.mountPath }}
|
|
TRANSFORMERS_CACHE: {{ .Values.persistence.mlcache.targetSelector.machinelearning.machinelearning.mountPath }}
|
|
{{- end }}
|
|
|
|
{{/* Server and Microservices */}}
|
|
common-config:
|
|
enabled: true
|
|
data:
|
|
NODE_ENV: production
|
|
LOG_LEVEL: {{ .Values.immich.log_level }}
|
|
IMMICH_MACHINE_LEARNING_ENABLED: {{ .Values.immich.enable_ml | quote }}
|
|
{{- if .Values.immich.enable_ml }}
|
|
IMMICH_MACHINE_LEARNING_URL: {{ printf "http://%v-machinelearning:%v" $fname .Values.service.machinelearning.ports.machinelearning.port }}
|
|
{{- end }}
|
|
|
|
secret:
|
|
{{/* Server and Microservices */}}
|
|
deps-secret:
|
|
enabled: true
|
|
data:
|
|
DB_USERNAME: {{ .Values.cnpg.main.user }}
|
|
DB_DATABASE_NAME: {{ .Values.cnpg.main.database }}
|
|
DB_HOSTNAME: {{ .Values.cnpg.main.creds.host }}
|
|
DB_PASSWORD: {{ .Values.cnpg.main.creds.password }}
|
|
DB_PORT: "5432"
|
|
REDIS_HOSTNAME: {{ .Values.redis.creds.plainhost }}
|
|
REDIS_PASSWORD: {{ .Values.redis.creds.redisPassword }}
|
|
REDIS_PORT: "6379"
|
|
REDIS_DBINDEX: "0"
|
|
{{- end -}}
|