From 06349fa3ce2ae7f7203cc1d4bad85fcd032d4e44 Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 30 Sep 2026 14:02:28 +0200 Subject: [PATCH] CDN: enable auth hook --- src/cdn/Server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cdn/Server.ts b/src/cdn/Server.ts index b46dffff2..c6cc9c66b 100644 --- a/src/cdn/Server.ts +++ b/src/cdn/Server.ts @@ -19,7 +19,7 @@ import path from "node:path"; import morgan from "morgan"; import { Server, ServerOptions } from "lambert-server/Server"; -import { CORS, BodyParser } from "@spacebar/api/middlewares"; +import { CORS, BodyParser, Authentication } from "@spacebar/api/middlewares"; import { Attachment, initDatabase } from "@spacebar/database"; import { Config, JwtKeypairManager, registerRoutes } from "@spacebar/util"; import { ProcessLifecycle, SystemdLifecycle } from "../util/util/ProcessLifecycle"; @@ -67,6 +67,7 @@ export class CDNServer extends Server { this.app.disable("x-powered-by"); + this.app.use(Authentication); this.app.use(ErrorHandler); this.app.use(CORS); this.app.use(BodyParser({ inflate: true, limit: "10mb" }));