2021-06-08 23:11:18 +03:00
|
|
|
{
|
2022-03-15 20:58:32 +00:00
|
|
|
"distSpecVersion":"1.0.1",
|
2021-06-08 23:11:18 +03:00
|
|
|
"storage":{
|
|
|
|
"rootDirectory":"/tmp/zot"
|
|
|
|
},
|
|
|
|
"http":{
|
|
|
|
"address":"127.0.0.1",
|
2021-10-28 12:10:01 +03:00
|
|
|
"port":"8080"
|
2021-06-08 23:11:18 +03:00
|
|
|
},
|
|
|
|
"log":{
|
|
|
|
"level":"debug"
|
|
|
|
},
|
|
|
|
"extensions":{
|
|
|
|
"sync": {
|
2021-12-28 15:29:30 +02:00
|
|
|
"enable": true,
|
2021-06-08 23:11:18 +03:00
|
|
|
"credentialsFile": "./examples/sync-auth-filepath.json",
|
|
|
|
"registries": [{
|
2021-12-29 17:14:56 +02:00
|
|
|
"urls": ["https://registry1:5000"],
|
2021-06-08 23:11:18 +03:00
|
|
|
"onDemand": false,
|
|
|
|
"pollInterval": "6h",
|
|
|
|
"tlsVerify": true,
|
|
|
|
"certDir": "/home/user/certs",
|
2022-01-10 18:06:12 +02:00
|
|
|
"maxRetries": 3,
|
|
|
|
"retryDelay": "5m",
|
2022-03-07 10:45:10 +02:00
|
|
|
"onlySigned": true,
|
2021-06-08 23:11:18 +03:00
|
|
|
"content":[
|
|
|
|
{
|
|
|
|
"prefix":"/repo1/repo",
|
|
|
|
"tags":{
|
|
|
|
"regex":"4.*",
|
|
|
|
"semver":true
|
|
|
|
}
|
|
|
|
},
|
2022-03-10 17:39:11 +02:00
|
|
|
{
|
|
|
|
"prefix":"/repo1/repo",
|
|
|
|
"destination": "/repo",
|
|
|
|
"stripPrefix": true
|
|
|
|
},
|
2021-06-08 23:11:18 +03:00
|
|
|
{
|
|
|
|
"prefix":"/repo2/repo"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2021-12-29 17:14:56 +02:00
|
|
|
"urls": ["https://registry2:5000", "https://registry3:5000"],
|
2021-06-08 23:11:18 +03:00
|
|
|
"pollInterval": "12h",
|
|
|
|
"tlsVerify": false,
|
|
|
|
"onDemand": false,
|
|
|
|
"content":[
|
|
|
|
{
|
|
|
|
"prefix":"/repo2",
|
|
|
|
"tags":{
|
|
|
|
"semver":true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2021-12-29 17:14:56 +02:00
|
|
|
"urls": ["https://docker.io/library"],
|
2021-06-08 23:11:18 +03:00
|
|
|
"onDemand": true,
|
2022-01-10 18:06:12 +02:00
|
|
|
"tlsVerify": true,
|
|
|
|
"maxRetries": 6,
|
|
|
|
"retryDelay": "5m"
|
2021-06-08 23:11:18 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2022-03-07 10:45:10 +02:00
|
|
|
}
|