This is a basic rate limit application developed with express.
- Copy .env.example file as .env and fill it
- Run with docker-compose
docker-compose up -d --build
Rate limits can be configure on .env file. By default it is 100req/h for ip and 200req/h for token.
POST /token
Returns a jwt token. It has a rate limit for ip.
Response
{ "token": "jwt_token" }
GET /
Returns name of the application. It has a rate limit for ip.
Response
"Express Rate Limit App"
POST /
Returns name of the application. It has a rate limit for token.
Takes jwt token on headers authorization.
Response
"Express Rate Limit App"