From 08415b403482befd6515d62179514ad4ea7ee813 Mon Sep 17 00:00:00 2001 From: user123456 Date: Wed, 11 Jun 2025 14:00:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=89=8D=E7=AB=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.go | 6 ++++++ src/config.toml | 7 +++++++ src/public/index.html | 28 +++++++++++++++++++++------- 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/src/config.go b/src/config.go index 520ccea..4eb70c7 100644 --- a/src/config.go +++ b/src/config.go @@ -111,6 +111,12 @@ func DefaultConfig() *AppConfig { AuthType: "quay", Enabled: true, }, + "registry.k8s.io": { + Upstream: "registry.k8s.io", + AuthHost: "registry.k8s.io", + AuthType: "anonymous", + Enabled: true, + }, }, } } diff --git a/src/config.toml b/src/config.toml index 6e4b5fb..e4696d9 100644 --- a/src/config.toml +++ b/src/config.toml @@ -68,6 +68,13 @@ authHost = "quay.io/v2/auth" authType = "quay" enabled = true +# Kubernetes Container Registry +[registries."registry.k8s.io"] +upstream = "registry.k8s.io" +authHost = "registry.k8s.io" +authType = "anonymous" +enabled = true + # 私有Registry示例(默认禁用) # [registries."harbor.company.com"] # upstream = "harbor.company.com" diff --git a/src/public/index.html b/src/public/index.html index 4708e0e..f6e0f5a 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -409,20 +409,33 @@ - +