Feat. Added rate limiting
This commit is contained in:
@@ -7,3 +7,12 @@ MINIO_USE_SSL=false
|
||||
MINIO_ACCESS_KEY=minioadmin
|
||||
MINIO_SECRET_KEY=minioadmin
|
||||
MINIO_BUCKET=pastes
|
||||
|
||||
# Set true when running behind a reverse proxy (Nginx, Cloudflare, etc.)
|
||||
TRUST_PROXY=false
|
||||
|
||||
# API rate limiting
|
||||
RATE_LIMIT_READ_WINDOW_MS=60000
|
||||
RATE_LIMIT_READ_MAX=240
|
||||
RATE_LIMIT_CREATE_WINDOW_MS=600000
|
||||
RATE_LIMIT_CREATE_MAX=40
|
||||
|
||||
Reference in New Issue
Block a user