|
|
@@ -24,11 +24,6 @@
|
|
|
|
|
|
{{- $dbURL := (printf "postgres://%s:%s@%s:5432/%s?sslmode=disable" $dbUser $dbPass $dbHost $dbName) -}}
|
|
|
|
|
|
- {{- $typesenseKey := randAlphaNum 32 -}}
|
|
|
- {{- with (lookup "v1" "Secret" .Release.Namespace (printf "%s-immich-creds" $fullname)) -}}
|
|
|
- {{- $typesenseKey = ((index .data "TYPESENSE_API_KEY") | b64dec) -}}
|
|
|
- {{- end -}}
|
|
|
-
|
|
|
{{- $mlURL := printf "http://%v-machinelearning:%v" $fullname .Values.immichNetwork.machinelearningPort }}
|
|
|
|
|
|
secret:
|
|
|
@@ -56,13 +51,6 @@ secret:
|
|
|
{{- if .Values.immichConfig.enableML }}
|
|
|
IMMICH_MACHINE_LEARNING_URL: {{ $mlURL | quote }}
|
|
|
{{- end }}
|
|
|
- TYPESENSE_ENABLED: {{ .Values.immichConfig.enableTypesense | quote }}
|
|
|
- TYPESENSE_API_KEY: {{ $typesenseKey }}
|
|
|
- {{- if .Values.immichConfig.enableTypesense }}
|
|
|
- TYPESENSE_PROTOCOL: http
|
|
|
- TYPESENSE_HOST: {{ printf "%v-typesense" $fullname }}
|
|
|
- TYPESENSE_PORT: {{ .Values.immichNetwork.typesensePort | quote }}
|
|
|
- {{- end }}
|
|
|
DB_USERNAME: {{ $dbUser }}
|
|
|
DB_PASSWORD: {{ $dbPass }}
|
|
|
DB_HOSTNAME: {{ $dbHost }}
|
|
|
@@ -73,14 +61,6 @@ secret:
|
|
|
REDIS_PORT: "6379"
|
|
|
REDIS_DBINDEX: "0"
|
|
|
|
|
|
- {{- if .Values.immichConfig.enableTypesense }}
|
|
|
- typesense-creds:
|
|
|
- enabled: true
|
|
|
- data:
|
|
|
- TYPESENSE_API_KEY: {{ $typesenseKey }}
|
|
|
- TYPESENSE_DATA_DIR: /typesense-data
|
|
|
- {{- end }}
|
|
|
-
|
|
|
configmap:
|
|
|
server-config:
|
|
|
enabled: true
|