feat: add gc config

This commit is contained in:
Simon Cornet 2026-05-08 11:50:45 +02:00
commit 066f720484

View file

@ -1,7 +1,23 @@
{ {
"distSpecVersion": "1.1.1", "distSpecVersion": "1.1.1",
"storage": { "storage": {
"rootDirectory": "/var/lib/zot" "rootDirectory": "/var/lib/zot",
"gc": true,
"gcDelay": "1h",
"gcInterval": "24h",
"retention": {
"delay": "24h",
"policies": [
{
"repositories": ["**"],
"deleteReferrers": true,
"deleteUntagged": true,
"keepTags": [{
"pulledWithin": "60d"
}]
}
]
}
}, },
"http": { "http": {
"address": "127.0.0.1", "address": "127.0.0.1",