summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts10
1 files changed, 10 insertions, 0 deletions
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 + }, +});