🐛 Fix cannot get ip behind cloudflare
This commit is contained in:
@ -29,6 +29,7 @@ func InitServer() *fiber.App {
|
||||
ErrorHandler: status.StatusPageHandler,
|
||||
JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal,
|
||||
JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal,
|
||||
ProxyHeader: fiber.HeaderXForwardedFor,
|
||||
Prefork: viper.GetBool("performance.prefork"),
|
||||
BodyLimit: viper.GetInt("hypertext.limitation.max_body_size"),
|
||||
})
|
||||
|
Reference in New Issue
Block a user