tpl ingress.host in the well known redirect

This commit is contained in:
Gaël Goinvic committed 2025-02-28 10:48:11 +01:00
1 parent 0901e06419
commit d765ade269
2 files changed
+2 -1

No files matched your search

@@ -22,7 +22,7 @@ frontend well-known-in
{{- if $root.Values.elementWeb.enabled }}
{{- with $root.Values.elementWeb }}
{{- $elementWebHttps := include "element-io.ess-library.ingress.tlsSecret" (dict "root" $root "context" (dict "hosts" (list (required "elementWeb.ingress.host is required" .ingress.host)) "tlsSecret" .ingress.tlsSecret "ingressName" "element-web")) }}
http-request redirect code 301 location http{{ if $elementWebHttps }}s{{ end }}://{{ .ingress.host }} unless well-known
http-request redirect code 301 location http{{ if $elementWebHttps }}s{{ end }}://{{ tpl .ingress.host $root }} unless well-known
{{- end }}
{{- else if .baseDomainRedirect.url }}
http-request redirect code 301 location {{ .baseDomainRedirect.url }} unless well-known
+1
View File
@@ -0,0 +1 @@
Allow to call tpl in well-known .ingress.host elementWeb redirect.