mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
Added config enable=true/false for extensions with default value as enabled closes #258
Signed-off-by: Alexei Dodon <adodon@cisco.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
730fe70f2f
commit
47c9b6244e
+5
-5
@@ -388,7 +388,7 @@ Configure each registry sync:
|
||||
"pollInterval": "6h", # polling interval, if not set then periodically polling will not run
|
||||
"tlsVerify": true, # whether or not to verify tls (default is true)
|
||||
"certDir": "/home/user/certs", # use certificates at certDir path, if not specified then use the default certs dir
|
||||
"maxRetries": 5, # mandatory option! maxRetries in case of temporary errors
|
||||
"maxRetries": 5, # mandatory option! maxRetries in case of temporary errors
|
||||
"retryDelay": "10m", # mandatory option! delay between retries, retry options are applied for both on demand and periodically sync.
|
||||
"content":[ # which content to periodically pull, also it's used for filtering ondemand images, if not set then periodically polling will not run
|
||||
{
|
||||
@@ -401,7 +401,7 @@ Configure each registry sync:
|
||||
{
|
||||
"prefix":"/repo2/repo*" # pull all images that matches repo2/repo.*
|
||||
},
|
||||
{
|
||||
{
|
||||
"prefix":"/repo3/**" # pull all images under repo3/ (matches recursively all repos under repo3/)
|
||||
}
|
||||
]
|
||||
@@ -411,7 +411,7 @@ Configure each registry sync:
|
||||
"pollInterval": "12h",
|
||||
"tlsVerify": false,
|
||||
"onDemand": false,
|
||||
"maxRetries": 5,
|
||||
"maxRetries": 5,
|
||||
"retryDelay": "10m",
|
||||
"content":[
|
||||
{
|
||||
@@ -426,8 +426,8 @@ Configure each registry sync:
|
||||
"urls": ["https://docker.io/library"],
|
||||
"onDemand": true, # doesn't have content, don't periodically pull, pull just on demand.
|
||||
"tlsVerify": true,
|
||||
"maxRetries": 3,
|
||||
"retryDelay": "15m"
|
||||
"maxRetries": 3,
|
||||
"retryDelay": "15m"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"version": "0.1.0-dev",
|
||||
"storage": {
|
||||
"rootDirectory": "/tmp/zot"
|
||||
},
|
||||
"http": {
|
||||
"address": "127.0.0.1",
|
||||
"port": "8080"
|
||||
},
|
||||
"log": {
|
||||
"level": "debug"
|
||||
},
|
||||
"extensions": {
|
||||
"metrics": {
|
||||
},
|
||||
"sync": {
|
||||
"credentialsFile": "./examples/sync-auth-filepath.json",
|
||||
"registries": [{
|
||||
"urls": ["https://registry1:5000"],
|
||||
"onDemand": false,
|
||||
"pollInterval": "6h",
|
||||
"tlsVerify": true,
|
||||
"certDir": "/home/user/certs",
|
||||
"maxRetries": 3,
|
||||
"retryDelay": "15m",
|
||||
"content":[
|
||||
{
|
||||
"prefix":"/repo1/repo",
|
||||
"tags":{
|
||||
"regex":"4.*",
|
||||
"semver":true
|
||||
}
|
||||
},
|
||||
{
|
||||
"prefix":"/repo2/repo"
|
||||
}
|
||||
]
|
||||
}]
|
||||
},
|
||||
"search": {
|
||||
"cve": {
|
||||
"updateInterval": "2h"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,7 @@
|
||||
},
|
||||
"extensions":{
|
||||
"sync": {
|
||||
"enable": true,
|
||||
"credentialsFile": "./examples/sync-auth-filepath.json",
|
||||
"registries": [{
|
||||
"urls": ["https://registry1:5000"],
|
||||
|
||||
Reference in New Issue
Block a user