mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-03 02:37:02 +00:00
Fix: False positive for Google Chrome (#6225)
This commit is contained in:
@@ -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 && \
|
||||
|
||||
@@ -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>
|
||||
`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user