2024-03-20 22:08:11 +00:00
|
|
|
{{- define "immich.config" -}}
|
|
|
|
{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}}
|
|
|
|
|
|
|
|
configmap:
|
|
|
|
server-config:
|
|
|
|
enabled: true
|
|
|
|
data:
|
2024-06-12 21:26:34 +00:00
|
|
|
IMMICH_PORT: {{ .Values.service.main.ports.main.port | quote }}
|
|
|
|
IMMICH_WORKERS_INCLUDE: api
|
2024-03-20 22:08:11 +00:00
|
|
|
|
|
|
|
micro-config:
|
|
|
|
enabled: true
|
|
|
|
data:
|
2024-06-12 21:26:34 +00:00
|
|
|
IMMICH_PORT: {{ .Values.service.microservices.ports.microservices.port | quote }}
|
2024-03-20 22:08:11 +00:00
|
|
|
REVERSE_GEOCODING_DUMP_DIRECTORY: {{ .Values.persistence.microcache.targetSelector.microservices.microservices.mountPath }}
|
2024-06-12 21:26:34 +00:00
|
|
|
IMMICH_WORKERS_EXCLUDE: api
|
2024-03-20 22:08:11 +00:00
|
|
|
|
|
|
|
{{- if .Values.immich.enable_ml }}
|
|
|
|
ml-config:
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
NODE_ENV: production
|
2024-06-12 21:26:34 +00:00
|
|
|
IMMICH_PORT: {{ .Values.service.machinelearning.ports.machinelearning.port | quote }}
|
2024-03-20 22:08:11 +00:00
|
|
|
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
|
2024-06-12 21:26:34 +00:00
|
|
|
IMMICH_LOG_LEVEL: {{ .Values.immich.log_level }}
|
2024-03-20 22:08:11 +00:00
|
|
|
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 -}}
|