Update _webui.tpl
Signed-off-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
parent
62a8f7ed8e
commit
335c545385
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in New Issue