mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
22 lines
441 B
Go
22 lines
441 B
Go
package config
|
|
|
|
import (
|
|
"gitlab.com/mbugroup/lti-api.git/internal/utils"
|
|
|
|
"github.com/bytedance/sonic"
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func FiberConfig() fiber.Config {
|
|
return fiber.Config{
|
|
Prefork: IsProd,
|
|
CaseSensitive: true,
|
|
ServerHeader: "Fiber",
|
|
AppName: "Fiber API",
|
|
BodyLimit: 8 * 1024 * 1024,
|
|
ErrorHandler: utils.ErrorHandler,
|
|
JSONEncoder: sonic.Marshal,
|
|
JSONDecoder: sonic.Unmarshal,
|
|
}
|
|
}
|