diff --git a/k8s/apps/ingresses/templates/authentik.yaml b/k8s/apps/ingresses/templates/authentik.yaml index 7bd7ae8..18b96c5 100644 --- a/k8s/apps/ingresses/templates/authentik.yaml +++ b/k8s/apps/ingresses/templates/authentik.yaml @@ -25,10 +25,12 @@ spec: name: authentik-server namespace: chart-authentik port: 80 +{{ if .Values.global.tls.enabled }} tls: secretName: tls-authentik.core.home.{{ .Values.global.domain }} domains: - main: authentik.core.home.{{ .Values.global.domain }} +{{ end }} --- apiVersion: traefik.containo.us/v1alpha1 kind: Middleware @@ -50,4 +52,8 @@ spec: - X-authentik-meta-outpost - X-authentik-meta-provider - X-authentik-meta-app - - X-authentik-meta-version \ No newline at end of file + - X-authentik-meta-version +--- +{{ if .Values.global.tls.enabled }} +{{ include "homelab.ingress.domain.tls" (dict "global" .Values.global "namespace" "chart-authentik" "prefix" "authentik.core.home" "domain" .Values.global.domain ) }} +{{ end }} \ No newline at end of file