Bandwidth quotas now work on data returned from server

This commit is contained in:
Frederick F. Kautz IV
2015-04-26 15:49:46 -07:00
parent 5fe173edf1
commit 7867ee89fa
3 changed files with 40 additions and 9 deletions

View File

@@ -92,7 +92,8 @@ 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, 256*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))
return h
}