Fix: False positive for Google Chrome (#6225)

This commit is contained in:
Louis Lam
2025-10-23 00:37:33 +08:00
committed by GitHub
parent 60219caff8
commit c451db542d
2 changed files with 13 additions and 4 deletions

View File

@@ -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 && \

View File

@@ -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(`
<html lang="en">
<head><meta http-equiv="refresh" content="0; URL=/migrate-status" /></head>
<body>Migration server is running.</body>
<head><title>Uptime Kuma Migration</title></head>
<body>
Migration is in progress, it may take some time. You can check the progress in the console, or
<a href="/migrate-status" target="_blank">click here to check</a>.
</body>
</html>
`);
});