From e8c35d1fa85b0c88fdcbaa45a51ad4d087ffd5c3 Mon Sep 17 00:00:00 2001 From: jinghui <181050043@qq.com> Date: Tue, 27 Oct 2026 10:26:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BC=80=E6=BA=90=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=20Gitee=EF=BC=9B=E4=BF=AE=20extra=5Fhosts=20?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E5=90=AF=E5=8A=A8=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 7 +++++++ docker-compose.yml | 2 -- public/app.js | 4 ++-- public/index.html | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53e08bd..ac22190 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # 更新日志 +## 2026-10-27 → ✨ 开源地址改为 Gitee + +- ✨ 右上角、底部常驻横条、页面末尾推广卡片三处「开源地址」统一改为 `https://gitee.com/jinghui111/docker-center`(原为自建 Gitea) +- 🔧 同步改掉代码里的两处默认值与 `data/settings.json` 的 `links.repo`,重装/清空配置后也不会退回旧地址 +- 🔧 修容器启动失败:`docker-compose.yml` 里的 `extra_hosts: host.docker.internal:host-gateway` 在 Docker 28.5.2 上报 `could not parse extra host IP invalid IP`,容器卡在 Created。项目代码从未用到 `host.docker.internal`,直接移除该项,容器恢复正常(healthy) +- ✅ 实测:`/api/settings` 返回 gitee 地址;三处链接均为 gitee;页面内已无 `gitea.88531.cn` 残留 + ## 2026-10-27 → ✨ 镜像发布能力(多仓库推送脚本 + 文档) - ✨ 新增 `scripts/push-image.sh`:一条命令构建并推送,支持 `aliyun` / `tencent` / `dockerhub` / `gitea-lan` / `gitea` / `custom`,可选 `MULTIARCH=1`(amd64+arm64)、`REUSE=1`(复用本地镜像) diff --git a/docker-compose.yml b/docker-compose.yml index 4c54c79..abfaa88 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,4 @@ services: - SAMPLE_MS=3000 - INSPECT_MS=15000 - SETTINGS_PATH=/data/settings.json - extra_hosts: - - "host.docker.internal:host-gateway" mem_limit: 384m diff --git a/public/app.js b/public/app.js index 663194c..dcbbe9a 100644 --- a/public/app.js +++ b/public/app.js @@ -168,7 +168,7 @@ function go(view) { async function renderExtLinks() { const box = document.getElementById('extLinks'); if (!box) return; - let repo = 'https://gitea.88531.cn/jinghui/docker-center'; + let repo = 'https://gitee.com/jinghui111/docker-center'; let nav = 'https://nav.88531.cn'; try { const s = await api('/api/settings'); @@ -191,7 +191,7 @@ async function renderExtLinks() { function appendPromoCard() { const v = document.getElementById('view'); if (!v || v.querySelector('.promo-card')) return; - const repo = (window.__extLinks && window.__extLinks.repo) || 'https://gitea.88531.cn/jinghui/docker-center'; + const repo = (window.__extLinks && window.__extLinks.repo) || 'https://gitee.com/jinghui111/docker-center'; const nav = (window.__extLinks && window.__extLinks.nav) || 'https://nav.88531.cn'; const el = document.createElement('div'); el.className = 'promo-card'; diff --git a/public/index.html b/public/index.html index bacbf30..bff8278 100644 --- a/public/index.html +++ b/public/index.html @@ -70,7 +70,7 @@