mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-25 20:32:08 +00:00
Set trusted proxies in CDN
This commit is contained in:
committed by
Rory&
parent
d2015f06be
commit
6fa604efd1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user