From ea676ddd0351bdf5949c19aeead2fdaeb668dcbf Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sun, 27 Jun 2021 23:14:13 +0200 Subject: :lock: register proxy ip check --- src/Server.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Server.ts') diff --git a/src/Server.ts b/src/Server.ts index f979dab2..93bbfe54 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -2,7 +2,7 @@ import "missing-native-js-functions"; import fs from "fs/promises"; import { Connection } from "mongoose"; import { Server, ServerOptions } from "lambert-server"; -import { Authentication, CORS, GlobalRateLimit } from "./middlewares/"; +import { Authentication, CORS } from "./middlewares/"; import { Config, db } from "@fosscord/server-util"; import i18next from "i18next"; import i18nextMiddleware, { I18next } from "i18next-http-middleware"; @@ -65,7 +65,6 @@ export class FosscordServer extends Server { console.log("[DB] connected"); await Config.init(); - this.app.use(GlobalRateLimit); this.app.use(CORS); this.app.use(Authentication); this.app.use(BodyParser({ inflate: true, limit: 1024 * 1024 * 2 })); -- cgit 1.5.1