Update _webui.tpl

Signed-off-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
Kjeld Schouten-Lebbing 2022-09-26 12:12:10 +02:00 committed by GitHub
parent 62a8f7ed8e
commit 335c545385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -36,6 +36,13 @@ startupProbe:
env:
- name: NODE_ENV
value: "production"
{{- if .Values.ingress.main.enabled }}
{{- with (first .Values.ingress.main.hosts) }}
{{- $url = ( printf "https://%s" .host ) }}
{{- end }}
{{- else }}
{{- $url = .Values.webUI.apiURL }}
{{- end }}
- name: API_URL
value: "{{ .Values.webUI.apiURL }}"
value: "{{ $url }}"
{{- end -}}