This commit is contained in:
hippoz 2021-03-26 22:50:35 +02:00
commit 78d3071a84
No known key found for this signature in database
GPG key ID: 7C52899193467641

View file

@ -15,7 +15,10 @@ const app = express.Router();
const createAccountLimiter = rateLimit({
windowMs: 60 * 60 * 1000, // 1 hour window
max: 10, // start blocking after 5 requests
message: "You are being rate limited"
message: JSON.stringify({
error: true,
message: "ERROR_RATE_LIMITED"
})
});
mongoose.connect(config.mongoUrl, {useNewUrlParser: true, useUnifiedTopology: true});