docker匿名Token缓存

This commit is contained in:
user123456
2025-06-11 14:18:49 +08:00
parent 08415b4034
commit a2550bc80e
4 changed files with 166 additions and 1 deletions

View File

@@ -81,3 +81,10 @@ enabled = true
# authHost = "harbor.company.com/service/token"
# authType = "basic"
# enabled = false
# docker的匿名Token缓存配置显著提升性能
[tokenCache]
# 是否启用token缓存
enabled = true
# 默认缓存时间自动从响应中提取实际TTL
defaultTTL = "20m"