mirror of
https://github.com/open-webui/helm-charts
synced 2025-06-26 18:16:14 +00:00
Fix issue #253
This commit is contained in:
parent
b33c1bda00
commit
afb59263f5
@ -239,18 +239,15 @@ Constructs a string containing the URLs of the Open WebUI based on the ingress c
|
|||||||
used to populate the variable WEBUI_URL
|
used to populate the variable WEBUI_URL
|
||||||
*/ -}}
|
*/ -}}
|
||||||
{{- define "openweb-ui.url" -}}
|
{{- define "openweb-ui.url" -}}
|
||||||
{{- $url := "" -}}
|
{{- $webuiEnv := where .Values.extraEnvVars "name" "WEBUI_URL" | first -}}
|
||||||
{{- range .Values.extraEnvVars }}
|
{{- if and $webuiEnv $webuiEnv.value }}
|
||||||
{{- if and (eq .name "WEBUI_URL") .value }}
|
{{- $webuiEnv.value }}
|
||||||
{{- $url = .value }}
|
{{- else }}
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if not $url }}
|
|
||||||
{{- $proto := "http" -}}
|
{{- $proto := "http" -}}
|
||||||
{{- if .Values.ingress.tls }}
|
{{- if .Values.ingress.tls }}
|
||||||
{{- $proto = "https" -}}
|
{{- $proto = "https" -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $url = printf "%s://%s" $proto .Values.ingress.host }}
|
{{- printf "%s://%s" $proto .Values.ingress.host }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $url }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user