Commit b517cc6d authored by Juha's avatar Juha

Throttle plugin taken into use

parent 2c333fa1
Pipeline #24889607 passed with stage
in 0 seconds
......@@ -18,6 +18,11 @@ app.pre(cors.preflight);
app.use(cors.actual);
app.use(restify.plugins.acceptParser(app.acceptable));
app.use(restify.plugins.bodyParser({ mapParams: true }));
app.use(restify.plugins.throttle({
burst: 50,
rate: 20,
ip: true,
}));
require('./routes')(app);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment