diff --git a/main.go b/main.go index 499525f..78642b9 100644 --- a/main.go +++ b/main.go @@ -38,6 +38,10 @@ func main() { Views: engine, Prefork: true, AppName: "GotHub", + // fucked up way to fix rate limits + EnableTrustedProxyCheck: true, + TrustedProxies: []string{"0.0.0.0/0"}, + ProxyHeader: fiber.HeaderXForwardedFor, ErrorHandler: func(ctx *fiber.Ctx, err error) error { code := fiber.StatusInternalServerError