Rate Limiting

Tweaking
This commit is contained in:
Marko Milić 2018-09-13 17:23:30 +02:00 committed by GitHub
parent ed83ab2cc4
commit 0981ebe895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -419,20 +419,20 @@ We support rate limiting i.e functionality to limit calls per consumer key (App)
It is assumed that you have a Redis instance if you wan to use the functionality. In order to make it work edit your props file in next way:
```
use_consumer_limits=false, In case isn't defined default value is "false"
redis_address=YOUR_REDIS_URL_ADDRESS for instance 127.0.0.1
redis_port=YOUR_REDIS_PORT for intance 6379
redis_address=YOUR_REDIS_URL_ADDRESS, In case isn't defined default value is 127.0.0.1
redis_port=YOUR_REDIS_PORT, In case isn't defined default value is 6379
```
Next types are supported:
```
1 per minute
2 per hour
3 per day
4 per week
5 per month
6 per year
1. per minute
2. per hour
3. per day
4. per week
5. per month
6. per year
```
If you exced rate limit per minute for instance you will get the response:
```
```json
{
"error": "OBP-10018: Too Many Requests.We only allow 3 requests per minute to this Web site per logged in user."
}