feat(sync): update examples

Signed-off-by: Vishwas Rajashekar <dev@vrajashkr.com>
This commit is contained in:
Vishwas Rajashekar
2026-05-17 18:45:07 +05:30
parent 4f49cea1a4
commit 7566f525cf
3 changed files with 5 additions and 60 deletions
+5
View File
@@ -1286,6 +1286,11 @@ sync can also read the certificates directly under certDir:
Besides sync-auth.json file, zot also reads and uses docker credentials by default: https://docs.docker.com/reference/cli/docker/login/#description
### Streaming sync
Under sync, set `"stream": true` to enable streaming. With this option enabled, blobs are streamed to clients as they are being downloaded
from the upstream registry. This does not require any configuration on the upstream.
## Search and CVE scanning (Trivy)
The `search` extension can include a `cve` section so zot downloads the [Trivy](https://github.com/aquasecurity/trivy) vulnerability database and exposes CVE data via the search API (for example GraphQL).
@@ -1,30 +0,0 @@
{
"distSpecVersion": "1.1.1",
"storage": {
"rootDirectory": "./temp/zotlocalbuildnormal"
},
"http": {
"address": "127.0.0.1",
"port": "8082"
},
"log": {
"level": "debug"
},
"extensions": {
"sync": {
"enable": true,
"registries": [
{
"urls": [
"http://localhost:9000"
],
"onDemand": true,
"tlsVerify": false,
"maxRetries": 5,
"retryDelay": "30s",
"syncTimeout": "10m"
}
]
}
}
}
-30
View File
@@ -1,30 +0,0 @@
{
"distSpecVersion": "1.1.1",
"storage": {
"rootDirectory": "./temp/zotmainlinenormal"
},
"http": {
"address": "127.0.0.1",
"port": "8081"
},
"log": {
"level": "debug"
},
"extensions": {
"sync": {
"enable": true,
"registries": [
{
"urls": [
"http://localhost:9000"
],
"onDemand": true,
"tlsVerify": false,
"maxRetries": 5,
"retryDelay": "30s",
"syncTimeout": "10m"
}
]
}
}
}