Compare commits

...

2 Commits

Author SHA1 Message Date
Louis Lam
932ac7b54e
Update to 2.0.2 (#6227) 2025-10-23 01:11:45 +08:00
Louis Lam
c451db542d
Fix: False positive for Google Chrome (#6225) 2025-10-23 00:37:33 +08:00
4 changed files with 17 additions and 8 deletions

View File

@ -2,11 +2,17 @@
# Build in Golang # 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 # 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 WORKDIR /app
ARG TARGETPLATFORM ARG TARGETPLATFORM
COPY ./extra/ ./extra/ 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 # Compile healthcheck.go
RUN apt update && \ RUN apt update && \
apt --yes --no-install-recommends install curl && \ apt --yes --no-install-recommends install curl && \

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "uptime-kuma", "name": "uptime-kuma",
"version": "2.0.0-beta.4", "version": "2.0.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "uptime-kuma", "name": "uptime-kuma",
"version": "2.0.0-beta.4", "version": "2.0.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@grpc/grpc-js": "~1.8.22", "@grpc/grpc-js": "~1.8.22",

View File

@ -1,6 +1,6 @@
{ {
"name": "uptime-kuma", "name": "uptime-kuma",
"version": "2.0.1", "version": "2.0.2",
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
@ -41,7 +41,7 @@
"build-docker-pr-test": "docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64 -t louislam/uptime-kuma:pr-test2 --target pr-test2 . --push", "build-docker-pr-test": "docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64 -t louislam/uptime-kuma:pr-test2 --target pr-test2 . --push",
"upload-artifacts": "node extra/release/upload-artifacts.mjs", "upload-artifacts": "node extra/release/upload-artifacts.mjs",
"upload-artifacts-beta": "node extra/release/upload-artifacts-beta.mjs", "upload-artifacts-beta": "node extra/release/upload-artifacts-beta.mjs",
"setup": "git checkout 2.0.1 && npm ci --omit dev && npm run download-dist", "setup": "git checkout 2.0.2 && npm ci --omit dev && npm run download-dist",
"download-dist": "node extra/download-dist.js", "download-dist": "node extra/download-dist.js",
"mark-as-nightly": "node extra/mark-as-nightly.js", "mark-as-nightly": "node extra/mark-as-nightly.js",
"reset-password": "node extra/reset-password.js", "reset-password": "node extra/reset-password.js",

View File

@ -39,11 +39,14 @@ class SimpleMigrationServer {
this.app.get("/", (req, res) => { this.app.get("/", (req, res) => {
res.set("Content-Type", "text/html"); 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(` res.end(`
<html lang="en"> <html lang="en">
<head><meta http-equiv="refresh" content="0; URL=/migrate-status" /></head> <head><title>Uptime Kuma Migration</title></head>
<body>Migration server is running.</body> <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> </html>
`); `);
}); });