容量管理: zones.rs 直读 nginx file_cache 共享内存记账(双轴: 磁盘 + keys_zone 索引内存), ?scan=1 扫盘上限 20 万文件; POST /api/admin/cache/purge 整区清理(只删文件不删目录, 根治 [crit] mkdir failed); POST /api/admin/cache/invalidate 按制品精准失效(预览->确认两步式, glob/子串, 删除上限 5000/扫描上限 20 万); GET /api/admin/cache 新增 capacity 块; 前端容量面板 + 按制品失效工具条; 测试 test-cache-capacity.sh 48/48(容量 27 + 精准失效 21, 含 EXPECT_MIN 护栏与前端静态契约); docs 容量管理章节
29 lines
1.8 KiB
JSON
29 lines
1.8 KiB
JSON
{
|
|
"items": {
|
|
"go": { "base": "http://127.0.0.1:18999", "key": "",
|
|
"mode": "proxy", "name": "测试上游 go", "desc": "假上游",
|
|
"enabled": true, "note": "", "created_at": 1757500000, "updated_at": 1757500000 },
|
|
"cargo": { "base": "http://127.0.0.1:18999", "key": "",
|
|
"mode": "proxy", "name": "测试上游 cargo", "desc": "假上游",
|
|
"enabled": true, "note": "", "created_at": 1757500000, "updated_at": 1757500000 },
|
|
"cargo-dl": { "base": "http://127.0.0.1:18999", "key": "",
|
|
"mode": "proxy", "name": "测试上游 cargo-dl", "desc": "假上游",
|
|
"enabled": true, "note": "", "created_at": 1757500000, "updated_at": 1757500000 },
|
|
"pypi": { "base": "http://127.0.0.1:18999", "key": "",
|
|
"mode": "proxy", "name": "测试上游 pypi", "desc": "假上游",
|
|
"enabled": true, "note": "", "created_at": 1757500000, "updated_at": 1757500000 },
|
|
"pypi-files": { "base": "http://127.0.0.1:18999", "key": "",
|
|
"mode": "proxy", "name": "测试上游 pypi-files", "desc": "假上游",
|
|
"enabled": true, "note": "", "created_at": 1757500000, "updated_at": 1757500000 },
|
|
"npm": { "base": "http://127.0.0.1:18999", "key": "",
|
|
"mode": "proxy", "name": "测试上游 npm", "desc": "假上游",
|
|
"enabled": true, "note": "", "created_at": 1757500000, "updated_at": 1757500000 },
|
|
"maven": { "base": "http://127.0.0.1:18999", "key": "",
|
|
"mode": "proxy", "name": "测试上游 maven", "desc": "假上游",
|
|
"enabled": true, "note": "", "created_at": 1757500000, "updated_at": 1757500000 },
|
|
"docker": { "base": "http://127.0.0.1:18999", "key": "",
|
|
"mode": "proxy", "name": "测试上游 docker", "desc": "假上游",
|
|
"enabled": true, "note": "", "created_at": 1757500000, "updated_at": 1757500000 }
|
|
}
|
|
}
|