🐛 Increase body size limit

This commit is contained in:
LittleSheep 2024-02-06 20:02:47 +08:00
parent 31e244220b
commit 8ea3e4763c

View File

@ -27,6 +27,7 @@ func NewServer() {
ProxyHeader: fiber.HeaderXForwardedFor, ProxyHeader: fiber.HeaderXForwardedFor,
JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal, JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal,
JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal, JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal,
BodyLimit: 50 * 1024 * 1024,
EnablePrintRoutes: viper.GetBool("debug"), EnablePrintRoutes: viper.GetBool("debug"),
}) })