feat(http): fix assets_origin

This commit is contained in:
Taha Yassine Kraiem 2022-02-10 14:44:39 +01:00
parent 7a3719522c
commit 00a73dd94b

View file

@ -55,7 +55,11 @@ spec:
- name: POSTGRES_STRING
value: 'postgres://{{ .Values.global.postgresql.postgresqlUser }}:{{ .Values.global.postgresql.postgresqlPassword }}@{{ .Values.global.postgresql.postgresqlHost }}:{{ .Values.global.postgresql.postgresqlPort }}/{{ .Values.global.postgresql.postgresqlDatabase }}'
- name: ASSETS_ORIGIN
{{- if eq .Values.global.s3.endpoint "http://minio.db.svc.cluster.local:9000" }}
value: 'https://{{ .Values.global.domainName }}/{{.Values.global.s3.assetsBucket}}'
{{- else }}
value: {{ (split "://" .Values.global.s3.endpoint)._0 }}://{{.Values.global.s3.assetsBucket}}.{{ (split "://" .Values.global.s3.endpoint)._1 }}
{{- end }}
{{- range $key, $val := .Values.env }}
- name: {{ $key }}
value: '{{ $val }}'