mirror of
https://github.com/NotAShelf/go-cdn.git
synced 2024-11-01 08:01:13 +00:00
implement ratelimiting
This commit is contained in:
parent
6f231ad51a
commit
275a6ac926
1 changed files with 8 additions and 4 deletions
12
README.md
12
README.md
|
@ -72,10 +72,14 @@ Example config.json file:
|
|||
{
|
||||
"port": "8080",
|
||||
"max_upload_size": 10485760,
|
||||
"heartbeat": "1h",
|
||||
"require_auth": true,
|
||||
"auth_username": "your-username",
|
||||
"auth_password": "your-password"
|
||||
"heartbeat": "60s",
|
||||
"require_auth": false,
|
||||
"auth_username": "",
|
||||
"auth_password": "",
|
||||
"upload_directory": "uploads",
|
||||
"rate_limit_enabled": true,
|
||||
"rate_limit_burst": 10,
|
||||
"rate_limit_requests": 1
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue