Skip to content

Commit e3ba252

Browse files
committed
rate limit
1 parent 5a5c194 commit e3ba252

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ func main() {
201201
app.Delete("/:bucket/*", AuthMiddleware, imageHandler.DeleteImage)
202202
}
203203

204-
// Upload endpoints with stricter rate limit - 10 requests per minute
204+
// Upload endpoints with stricter rate limit - 50 requests per minute
205205
if !disableUpload {
206206
uploadGroup := app.Group("/")
207-
uploadGroup.Use(middleware.NewAdvancedRateLimiter(10, time.Minute))
207+
uploadGroup.Use(middleware.NewAdvancedRateLimiter(50, time.Minute))
208208
uploadGroup.Post("/upload", AuthMiddleware, imageHandler.UploadImage)
209209
uploadGroup.Post("/upload-url", AuthMiddleware, imageHandler.UploadWithUrl)
210210
uploadGroup.Post("/batch/upload", AuthMiddleware, imageHandler.BatchUpload)

0 commit comments

Comments
 (0)