Commit 8fdb905f authored by Juha's avatar Juha

Merge branch 'throttle' into 'master'

Throttle plugin taken into use

See merge request !15
parents 2c333fa1 b517cc6d
Pipeline #24889701 passed with stage
......@@ -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