more restrictive rate limiting

This commit is contained in:
Matt Drollette
2015-03-14 16:42:51 -05:00
parent e162f485b5
commit 50d86fbbf3

View File

@@ -48,7 +48,7 @@ func NewServer(prefix string, trustProxy bool) *Server {
h := &http.Server{TLSConfig: config}
server := Server{h, nil}
th := throttled.RateLimit(throttled.PerHour(120), &throttled.VaryBy{RemoteAddr: true}, store.NewMemStore(10000))
th := throttled.RateLimit(throttled.PerDay(4), &throttled.VaryBy{RemoteAddr: true}, store.NewMemStore(100000))
middlewareChain := alice.New()
if trustProxy {