summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-07 23:04:53 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-07 23:04:53 +0200
commitdb67c20752360a6968b08dd82003a4be316c5721 (patch)
tree9cc8c5f7c114adfe2d0b9acf42ec4a11b0ab6647 /src/Server.ts
parent:bug: fix vanity url (diff)
downloadserver-db67c20752360a6968b08dd82003a4be316c5721.tar.xz
increase default banner/icon upload limit from 2mb -> 10mb
Diffstat (limited to '')
-rw-r--r--src/Server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Server.ts b/src/Server.ts
index 49bb2398..6d1d5009 100644
--- a/src/Server.ts
+++ b/src/Server.ts
@@ -69,7 +69,7 @@ export class FosscordServer extends Server {
 
 		this.app.use(CORS);
 		this.app.use(Authentication);
-		this.app.use(BodyParser({ inflate: true, limit: 1024 * 1024 * 2 }));
+		this.app.use(BodyParser({ inflate: true, limit: 1024 * 1024 * 10 })); // 2MB
 		const languages = fs.readdirSync(path.join(__dirname, "..", "locales"));
 		const namespaces = fs.readdirSync(path.join(__dirname, "..", "locales", "en"));
 		const ns = namespaces.filter((x) => x.endsWith(".json")).map((x) => x.slice(0, x.length - 5));