Skip to content

Rate limits 🚦

Latest
Compare
Choose a tag to compare
@talyguryn talyguryn released this 29 May 16:48
· 5 commits to master since this release
b1f1245

Now you can define uploading limits for clients (identified by IP address) by setting up quota and cycle params in.env file:

...
### Rate limiter params
# QUOTA is a number of images could be uploaded per target time CYCLE in seconds
# For example: not more 3 images per 60 seconds (quota=3, cycle=60)
RATE_LIMITER_QUOTA=3
RATE_LIMITER_CYCLE=60
#DISABLE_RATE_LIMITER=True