From 3b032667851905eeec5c61d50be1e242e1aa739c Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 29 May 2021 18:23:16 +0200 Subject: :sparkles: avatars --- src/Server.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Server.ts') diff --git a/src/Server.ts b/src/Server.ts index de02a585..15868129 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -1,6 +1,7 @@ import { Server, ServerOptions } from "lambert-server"; import { Config, db } from "@fosscord/server-util"; import path from "path"; +import multerConfig from "multer"; export interface CDNServerOptions extends ServerOptions {} @@ -26,3 +27,12 @@ export class CDNServer extends Server { return super.stop(); } } + +export const multer = multerConfig({ + storage: multerConfig.memoryStorage(), + limits: { + fields: 0, + files: 1, + fileSize: 1024 * 1024 * 100, // 100 mb + }, +}); -- cgit 1.5.1