Set trusted proxies in CDN

This commit is contained in:
Emma [it/its]@Rory& 2025-07-02 18:46:38 +02:00 committed by Rory&
parent d2015f06be
commit 6fa604efd1

View File

@ -58,6 +58,9 @@ export class CDNServer extends Server {
);
}
const trustedProxies = Config.get().security.trustedProxies;
if (trustedProxies) this.app.set("trust proxy", trustedProxies);
this.app.disable("x-powered-by");
this.app.use(CORS);