“Express-Rate-Limit-Nodejs” Code-Antworten

Express-Rate-Limit-Nodejs

    this.app.use(
      rateLimit({
        windowMs: 24 * 60 * 3, // next request to endpoint
        max: 100, // maximal request for all endpoint
        message: 'To many request, send back request after 3 minutes'
      })
    )
    this.app.use(
      SlowDown({
        windowMs: 24 * 60 * 1, // next request to endpoint
        delayMs: 24 * 60 * 2000, // increment delay
        delayAfter: 100 // slow down after request
      })
    )
Restu Wahyu Saputra

Express -Ratengrenze

npm i express-rate-limit
Fylls

Ähnliche Antworten wie “Express-Rate-Limit-Nodejs”

Fragen ähnlich wie “Express-Rate-Limit-Nodejs”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen