diff --git a/services/web/app/coffee/Features/Compile/CompileController.coffee b/services/web/app/coffee/Features/Compile/CompileController.coffee index 988c9035bf..587f00647c 100755 --- a/services/web/app/coffee/Features/Compile/CompileController.coffee +++ b/services/web/app/coffee/Features/Compile/CompileController.coffee @@ -50,9 +50,9 @@ module.exports = CompileController = else rateLimitOpts = endpointName: "full-pdf-download" - throttle: 100 + throttle: 1000 subjectName : req.ip - timeInterval : 60 * 10 + timeInterval : 60 * 60 RateLimiter.addCount rateLimitOpts, callback Project.findById project_id, {name: 1}, (err, project)-> diff --git a/services/web/test/UnitTests/coffee/Compile/CompileControllerTests.coffee b/services/web/test/UnitTests/coffee/Compile/CompileControllerTests.coffee index 6c94f4628a..15666ec751 100644 --- a/services/web/test/UnitTests/coffee/Compile/CompileControllerTests.coffee +++ b/services/web/test/UnitTests/coffee/Compile/CompileControllerTests.coffee @@ -135,7 +135,7 @@ describe "CompileController", -> @req.query = {} @RateLimiter.addCount.callsArgWith(1, null, true) @CompileController.proxyToClsi = (project_id, url)=> - @RateLimiter.addCount.args[0][0].throttle.should.equal 100 + @RateLimiter.addCount.args[0][0].throttle.should.equal 1000 done() @CompileController.downloadPdf @req, @res