(authentik) {
    route {
        # Outpost-Pfad immer an authentik weiterleiten
        reverse_proxy /outpost.goauthentik.io/* http://192.168.1.65:8444

        # Alle anderen Requests von authentik prüfen lassen
        forward_auth http://192.168.1.65:8444 {
            uri /outpost.goauthentik.io/auth/caddy
            copy_headers X-Authentik-Username X-Authentik-Groups X-Authentik-Entitlements X-Authentik-Email X-Authentik-Name X-Authentik-Uid X-Authentik-Jwt X-Authentik-Meta-Jwks X-Authentik-Meta-Outpost X-Authentik-Meta-Provider X-Authentik-Meta-App X-Authentik-Meta-Version
            trusted_proxies private_ranges
        }
    }
}
