Skip to content

Commit c451db5

Browse files
authored
Fix: False positive for Google Chrome (#6225)
1 parent 60219ca commit c451db5

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

docker/builder-go.dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
# Build in Golang
33
# Run npm run build-healthcheck-armv7 in the host first, another it will be super slow where it is building the armv7 healthcheck
44
############################################
5-
FROM golang:1-bookworm
5+
FROM golang:1-buster
66
WORKDIR /app
77
ARG TARGETPLATFORM
88
COPY ./extra/ ./extra/
99

10+
## Switch to archive.debian.org
11+
RUN sed -i '/^deb/s/^/#/' /etc/apt/sources.list \
12+
&& echo "deb http://archive.debian.org/debian buster main contrib non-free" | tee -a /etc/apt/sources.list \
13+
&& echo "deb http://archive.debian.org/debian-security buster/updates main contrib non-free" | tee -a /etc/apt/sources.list \
14+
&& echo "deb http://archive.debian.org/debian buster-updates main contrib non-free" | tee -a /etc/apt/sources.list
15+
1016
# Compile healthcheck.go
1117
RUN apt update && \
1218
apt --yes --no-install-recommends install curl && \

server/utils/simple-migration-server.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ class SimpleMigrationServer {
3939
this.app.get("/", (req, res) => {
4040
res.set("Content-Type", "text/html");
4141

42-
// HTML meta tag redirect to /status
42+
// Don't use meta tag redirect, it may cause issues in Chrome (#6223)
4343
res.end(`
4444
<html lang="en">
45-
<head><meta http-equiv="refresh" content="0; URL=/migrate-status" /></head>
46-
<body>Migration server is running.</body>
45+
<head><title>Uptime Kuma Migration</title></head>
46+
<body>
47+
Migration is in progress, it may take some time. You can check the progress in the console, or
48+
<a href="/migrate-status" target="_blank">click here to check</a>.
49+
</body>
4750
</html>
4851
`);
4952
});

0 commit comments

Comments
 (0)