mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 04:00:25 +03:00
Bandwidth quota now supports 100-Continue
This commit is contained in:
@@ -92,10 +92,10 @@ func HTTPHandler(domain string, driver drivers.Driver) http.Handler {
|
||||
}
|
||||
|
||||
h := validateHandler(conf, ignoreResourcesHandler(mux))
|
||||
h = quota.BandwidthCap(h, 250*1024*1024, time.Duration(30*time.Minute))
|
||||
// h = quota.BandwidthCap(h, 1024*1024*1024, time.Duration(24*time.Hour))
|
||||
// h = quota.RequestLimit(h, 100, time.Duration(30*time.Minute))
|
||||
// h = quota.RequestLimit(h, 1000, time.Duration(24*time.Hour))
|
||||
// h = quota.ConnectionLimit(h, 5)
|
||||
h = quota.BandwidthCap(h, 25*1024*1024, time.Duration(30*time.Minute))
|
||||
h = quota.BandwidthCap(h, 100*1024*1024, time.Duration(24*time.Hour))
|
||||
h = quota.RequestLimit(h, 100, time.Duration(30*time.Minute))
|
||||
h = quota.RequestLimit(h, 1000, time.Duration(24*time.Hour))
|
||||
h = quota.ConnectionLimit(h, 5)
|
||||
return h
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user