mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-12-04 07:42:28 -08:00
tpl ingress.host in the well known redirect
This commit is contained in:
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
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Allow to call tpl in well-known .ingress.host elementWeb redirect.
|
||||
Reference in new issue
Block a user