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