mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
controller: support rate-limiting incoming requests
helps constraining resource usage and against flood attacks. Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
f251e7af10
commit
1e5ea7e09c
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"version": "0.1.0-dev",
|
||||
"storage": {
|
||||
"rootDirectory": "/tmp/zot"
|
||||
},
|
||||
"http": {
|
||||
"address": "127.0.0.1",
|
||||
"port": "8080",
|
||||
"ReadOnly": false,
|
||||
"Ratelimit": {
|
||||
"Rate": 10,
|
||||
"Methods": [
|
||||
{
|
||||
"Method": "GET",
|
||||
"Rate": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"log": {
|
||||
"level": "debug",
|
||||
"output": "/tmp/zot.log"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user