mirror of
https://github.com/spacebarchat/server.git
synced 2024-09-21 18:21:36 +02:00
Increased CDN max upload to 10mb
This commit is contained in:
parent
a5f3f99a3f
commit
e4e10b18d9
@ -2,6 +2,7 @@ import { Server, ServerOptions } from "lambert-server";
|
||||
import { Config, initDatabase } from "@fosscord/util";
|
||||
import path from "path";
|
||||
import avatarsRoute from "./routes/avatars";
|
||||
import bodyParser from "body-parser";
|
||||
|
||||
export interface CDNServerOptions extends ServerOptions {}
|
||||
|
||||
@ -26,6 +27,7 @@ export class CDNServer extends Server {
|
||||
res.set("Access-Control-Allow-Methods", req.header("Access-Control-Request-Methods") || "*");
|
||||
next();
|
||||
});
|
||||
this.app.use(bodyParser.json({ inflate: true, limit: "10mb" }));
|
||||
|
||||
await this.registerRoutes(path.join(__dirname, "routes/"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user