Files
helm-charts/charts/compose-app/templates/_helpers/ingress.domain.tpl
T
2025-08-04 10:40:02 -04:00

12 lines
461 B
Smarty

{{- define "homelab.ingress.domain" -}}
{{- $rootPrefix := empty .leadPrefix | ternary "" (printf "%s." .leadPrefix) -}}
{{- if .useSecondaryDomain -}}
{{$rootPrefix}}{{.global.dns.secondary.root}}.{{.global.dns.secondary.domain}}
{{- else -}}
{{- if .useDirectPrefix -}}
{{$rootPrefix}}{{.global.dns.primary.domain}}
{{- else -}}
{{$rootPrefix}}{{.global.dns.primary.root}}.{{.global.dns.primary.domain}}
{{- end -}}
{{- end -}}
{{- end -}}