fix: Update homepage to sit behind authentik

This commit is contained in:
Super User
2026-08-21 15:43:01 -04:00
parent 643024b01c
commit 165f5d4f91
2 changed files with 14 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ metadata:
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-cloudflare cert-manager.io/cluster-issuer: letsencrypt-cloudflare
traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.middlewares: homepage-authentik@kubernetescrd
spec: spec:
tls: tls:
- hosts: - hosts:

View File

@@ -0,0 +1,13 @@
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: authentik
namespace: homepage
spec:
forwardAuth:
address: http://authentik-server.authentik.svc.cluster.local:80/outpost.goauthentik.io/auth/traefik
trustForwardHeader: true
authResponseHeaders:
- X-authentik-username
- X-authentik-groups
- X-authentik-email