make body limit much bigger

This commit is contained in:
pluja
2023-09-02 20:08:56 +02:00
parent 51ec7e1ba3
commit 7de10e2388

View File

@@ -27,8 +27,8 @@ func NewServer(listenAddr string, db database.Db) *Server {
Router: fiber.New(fiber.Config{
JSONEncoder: json.Marshal,
JSONDecoder: json.Unmarshal,
BodyLimit: 100 * 1024 * 1024, // Increase body limit to 100MB
ServerHeader: "Fiber", // Optional, for easier debugging
BodyLimit: 100000 * 1024 * 1024, // Increase body limit to 100000MB (100GB)
ServerHeader: "Fiber", // Optional, for easier debugging
}),
Db: db,
clients: make([]*websocket.Conn, 0),