implement ratelimiting

This commit is contained in:
NotAShelf 2023-06-03 23:19:45 +03:00
parent 6f231ad51a
commit 275a6ac926
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22

View file

@ -72,10 +72,14 @@ Example config.json file:
{ {
"port": "8080", "port": "8080",
"max_upload_size": 10485760, "max_upload_size": 10485760,
"heartbeat": "1h", "heartbeat": "60s",
"require_auth": true, "require_auth": false,
"auth_username": "your-username", "auth_username": "",
"auth_password": "your-password" "auth_password": "",
"upload_directory": "uploads",
"rate_limit_enabled": true,
"rate_limit_burst": 10,
"rate_limit_requests": 1
} }
``` ```