forked from louislam/uptime-kuma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'fork_master/master'
# Conflicts: # server/notification-providers/discord.js
- Loading branch information
Showing
93 changed files
with
7,756 additions
and
3,400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,6 @@ indent_size = 2 | |
|
||
[*.vue] | ||
trim_trailing_whitespace = false | ||
|
||
[*.go] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,7 @@ dist-ssr | |
|
||
cypress/videos | ||
cypress/screenshots | ||
|
||
/extra/healthcheck.exe | ||
/extra/healthcheck | ||
/extra/healthcheck-armv7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-- You should not modify if this have pushed to Github, unless it does serious wrong with the db. | ||
BEGIN TRANSACTION; | ||
|
||
ALTER TABLE monitor | ||
ADD grpc_url VARCHAR(255) default null; | ||
|
||
ALTER TABLE monitor | ||
ADD grpc_protobuf TEXT default null; | ||
|
||
ALTER TABLE monitor | ||
ADD grpc_body TEXT default null; | ||
|
||
ALTER TABLE monitor | ||
ADD grpc_metadata TEXT default null; | ||
|
||
ALTER TABLE monitor | ||
ADD grpc_method VARCHAR(255) default null; | ||
|
||
ALTER TABLE monitor | ||
ADD grpc_service_name VARCHAR(255) default null; | ||
|
||
ALTER TABLE monitor | ||
ADD grpc_enable_tls BOOLEAN default 0 not null; | ||
|
||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
############################################ | ||
# 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.19.4-buster | ||
WORKDIR /app | ||
ARG TARGETPLATFORM | ||
COPY ./extra/ ./extra/ | ||
|
||
# Compile healthcheck.go | ||
RUN apt update && \ | ||
apt --yes --no-install-recommends install curl && \ | ||
curl -sL https://deb.nodesource.com/setup_18.x | bash && \ | ||
apt --yes --no-install-recommends install nodejs && \ | ||
node ./extra/build-healthcheck.js $TARGETPLATFORM && \ | ||
apt --yes remove nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const childProcess = require("child_process"); | ||
const fs = require("fs"); | ||
const platform = process.argv[2]; | ||
|
||
if (!platform) { | ||
console.error("No platform??"); | ||
process.exit(1); | ||
} | ||
|
||
if (platform === "linux/arm/v7") { | ||
console.log("Arch: armv7"); | ||
if (fs.existsSync("./extra/healthcheck-armv7")) { | ||
fs.renameSync("./extra/healthcheck-armv7", "./extra/healthcheck"); | ||
console.log("Already built in the host, skip."); | ||
process.exit(0); | ||
} else { | ||
console.log("prebuilt not found, it will be slow! You should execute `npm run build-healthcheck-armv7` before build."); | ||
} | ||
} else { | ||
if (fs.existsSync("./extra/healthcheck-armv7")) { | ||
fs.rmSync("./extra/healthcheck-armv7"); | ||
} | ||
} | ||
|
||
const output = childProcess.execSync("go build -x -o ./extra/healthcheck ./extra/healthcheck.go").toString("utf8"); | ||
console.log(output); | ||
|
Oops, something went wrong.