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