From c451db542d7c36c66d10a4218628bc6cc0d314a9 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Thu, 23 Oct 2025 00:37:33 +0800 Subject: [PATCH] Fix: False positive for Google Chrome (#6225) --- docker/builder-go.dockerfile | 8 +++++++- server/utils/simple-migration-server.js | 9 ++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/docker/builder-go.dockerfile b/docker/builder-go.dockerfile index 7c25641b4..3a9d78248 100644 --- a/docker/builder-go.dockerfile +++ b/docker/builder-go.dockerfile @@ -2,11 +2,17 @@ # Build in Golang # Run npm run build-healthcheck-armv7 in the host first, another it will be super slow where it is building the armv7 healthcheck ############################################ -FROM golang:1-bookworm +FROM golang:1-buster WORKDIR /app ARG TARGETPLATFORM COPY ./extra/ ./extra/ +## Switch to archive.debian.org +RUN sed -i '/^deb/s/^/#/' /etc/apt/sources.list \ + && echo "deb http://archive.debian.org/debian buster main contrib non-free" | tee -a /etc/apt/sources.list \ + && echo "deb http://archive.debian.org/debian-security buster/updates main contrib non-free" | tee -a /etc/apt/sources.list \ + && echo "deb http://archive.debian.org/debian buster-updates main contrib non-free" | tee -a /etc/apt/sources.list + # Compile healthcheck.go RUN apt update && \ apt --yes --no-install-recommends install curl && \ diff --git a/server/utils/simple-migration-server.js b/server/utils/simple-migration-server.js index 895298560..1bc3b9475 100644 --- a/server/utils/simple-migration-server.js +++ b/server/utils/simple-migration-server.js @@ -39,11 +39,14 @@ class SimpleMigrationServer { this.app.get("/", (req, res) => { res.set("Content-Type", "text/html"); - // HTML meta tag redirect to /status + // Don't use meta tag redirect, it may cause issues in Chrome (#6223) res.end(` - - Migration server is running. + Uptime Kuma Migration + + Migration is in progress, it may take some time. You can check the progress in the console, or + click here to check. + `); });