mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
quota handlers now log against ip properly against a duration
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
||||
|
||||
router "github.com/gorilla/mux"
|
||||
"github.com/minio-io/minio/pkg/api/config"
|
||||
"github.com/minio-io/minio/pkg/api/quota"
|
||||
"github.com/minio-io/minio/pkg/iodine"
|
||||
"github.com/minio-io/minio/pkg/storage/drivers"
|
||||
)
|
||||
@@ -91,5 +92,5 @@ func HTTPHandler(domain string, driver drivers.Driver) http.Handler {
|
||||
|
||||
h := validateHandler(conf, ignoreResourcesHandler(mux))
|
||||
// quota handler is always last
|
||||
return QuotaHandler(h)
|
||||
return quota.Handler(h, int64(100*1024*1024))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user