summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-06-27 23:14:13 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-06-27 23:14:13 +0200
commitea676ddd0351bdf5949c19aeead2fdaeb668dcbf (patch)
tree621eed227e07720a73e6b08493693885593e19f2 /src/Server.ts
parent:bug: fix empty message bug for attachments (diff)
downloadserver-ts-ea676ddd0351bdf5949c19aeead2fdaeb668dcbf.tar.xz
:lock: register proxy ip check
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts3
1 files changed, 1 insertions, 2 deletions
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 }));