mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 08:43:02 +00:00
Set trusted proxies in CDN
This commit is contained in:
1 parent
d2015f06be
commit
6fa604efd1
1 file changed
+3
@@ -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