rootPrefix support
This commit is contained in:
1 parent
160305bd66
commit
dfc87cff6c
3 files changed
+22
-3
No files matched your search
@@ -1,11 +1,12 @@
|
||||
{{- define "homelab.ingress.domain" -}}
|
||||
{{- $rootPrefix := (.leadPrefix | default "") -}}
|
||||
{{- if .useSecondaryDomain -}}
|
||||
{{.global.secondaryDomain}}
|
||||
{{$rootPrefix}}{{.global.secondaryDomain}}
|
||||
{{- else -}}
|
||||
{{- if .useDirectPrefix -}}
|
||||
{{.global.domain}}
|
||||
{{$rootPrefix}}{{.global.domain}}
|
||||
{{- else -}}
|
||||
{{.global.rootSubDomain}}.{{.global.domain}}
|
||||
{{$rootPrefix}}{{.global.rootSubDomain}}.{{.global.domain}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
@@ -15,6 +15,13 @@
|
||||
#
|
||||
|
||||
|
||||
{{ $splitPrefix := splitList "." .prefix }}
|
||||
{{ $prefix := first $splitPrefix }}
|
||||
{{ $rootPrefix := join "." (rest $splitPrefix) }}
|
||||
|
||||
{{ $_ := set . "prefix" $prefix }}
|
||||
{{ $_ := set . "rootPrefix" $rootPrefix }}
|
||||
|
||||
{{ $domain := (include "homelab.ingress.domain" .) }}
|
||||
|
||||
{{ $_ := set . "domain" $domain }}
|
||||
|
||||
@@ -5,3 +5,14 @@ reverseProxy:
|
||||
yellow:
|
||||
port: "8123"
|
||||
ip: "192.168.0.23"
|
||||
services:
|
||||
- prefix: "argocd.core"
|
||||
service: "argocd-server"
|
||||
namespace: "argocd"
|
||||
group: "Core"
|
||||
icon: "assets/favicon/favicon-32x32.png"
|
||||
- prefix: "demo"
|
||||
service: "dummy-app"
|
||||
namespace: "apps-ingresses"
|
||||
middleware: "apps-ingresses-forwardauth-authentik"
|
||||
group: "Demo"
|
||||
Reference in new issue
Block a user