Strapi is an open-source, Node.js based, Headless CMS that saves developers a lot of development time, enabling them to build their application backends quickly by decreasing the lines of code necessary.

You can use Upstash’s HTTP and Redis based Ratelimit package integration with Strapi to protect your APIs from abuse.

Getting started

Installation

Create database

Create a new redis database on Upstash Console. See related docs for further info related to creating a database.

Set up environment variables

Get the environment variables from Upstash Console, and set it to .env file as below:

.env
UPSTASH_REDIS_REST_TOKEN="<YOUR_TOKEN>"
UPSTASH_REDIS_REST_URL="<YOUR_URL>"

Configure the plugin

You can use

Was this page helpful?