Uptime Kuma 是一款易于使用的自托管监控工具。
预设配置详情
Uptime Kuma
作者与贡献者
| 姓名 | Github 个人主页 | 请我喝杯咖啡 |
|---|---|---|
| gOOvER | https://github.com/gOOvER |
描述
Uptime Kuma 是一款易于使用的自托管监控工具
本孵化器基于 parkers 的通用 nodejs 孵化器
链接
Github: https://github.com/louislam/uptime-kuma
管理员与登录
安装并成功启动后,访问你的 <ip>:<port> 并设置管理员账户。
服务器端口
Uptime Kuma 需要 1 个端口。你可以选择任意端口
| 端口 | 默认值 |
|---|---|
| 默认 | 3000 |
Cloudflared、Apprise 与 Chromium
最新镜像支持 Cloudflared 和 Apprise。
Cloudflared
通过 Cloudflared,可以在无需使用 nginx 代理的情况下创建 Cloudflare 代理。更多信息请参阅:
https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy-with-Cloudflare-Tunnel
Apprise
Apprise 为各类服务提供通知功能。Uptime Kuma 内置了对 Apprise 的支持。
更多信息请参阅:
https://github.com/caronc/apprise#supported-notifications
监控 HTTP(s) - 浏览器引擎 (Chromium)
该镜像支持 "HTTP(s) - 浏览器引擎" 监控方式。
要使用此监控方式,请在设置中的 "通用 -> Chrome/Chromium 可执行文件"(位于底部)输入以下路径:
/usr/bin/chromium-browser
registry.cn-shanghai.aliyuncs.com/pterodactyl-images/apps:uptimekuma
if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == "1" ]]; then npm run setup; fi; /usr/local/bin/node /home/container/server/server.js --port={{SERVER_PORT}}
| 变量名 | 变量 | 描述 | 默认值 | 规则 | 可查看 | 可编辑 |
|---|---|---|---|---|---|---|
| Git 仓库地址 | GIT_ADDRESS |
要克隆的 GitHub 仓库 例如:https://github.com/parkervcp/repo_name | https://github.com/louislam/uptime-kuma |
nullable|string
可选 字符串
|
||
| JS 文件 | JS_FILE |
启动应用程序的文件 | server/server.js |
required|string
必填 字符串
|
||
| 自动更新 | AUTO_UPDATE |
1 |
required|boolean
必填 布尔
|
node:18-alpine
ash
#!/bin/ash
# Uptime Kuma App Installation Script
#
# Server Files: /mnt/server
apk update
apk add --no-cache git curl jq file unzip make gcc g++ python3 python3-dev libtool
apk add --no-cache git-lfs --repository=https://dl-cdn.alpinelinux.org/alpine/latest-stable/community
## npm update to latest
echo -e "Updating npm to latest....
"
if [ -d "/mnt/server/node_modules" ]; then
rm -fR /mnt/server/node_modules
npm cache verify
fi
npm install -g npm@latest
## Uptime Kuma install & update
mkdir -p /mnt/server
cd /mnt/server
git config --global --add safe.directory /mnt/server
if [ -d .git ]; then
echo -e "Updating Uptime Kuma....
"
npm run setup
else
echo -e "Download and installing Uptime Kuma...
"
git clone https://github.com/louislam/uptime-kuma.git .
npm run setup
fi
## only create dir, when .git is present to prevent errors
if [ -d .git ]; then
mkdir -p /mnt/server/data
fi
if [ ! -f "/mnt/server/data/kuma.db" ]; then
cp /mnt/server/db/kuma.db /mnt/server/data/kuma.db
fi
## install end
echo -e "-----------------------------------------"
echo -e "Installation completed..."
echo -e "-----------------------------------------"
exit 0
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"update_url": "https://eggs.pterodactyl.top/eggs/16/download/egg-uptime-kuma.json",
"version": "PTDL_v2"
},
"exported_at": "2024-06-02T14:40:55+00:00",
"name": "Uptime Kuma",
"author": "eggs@goover.dev",
"description": "Uptime Kuma 是一款易于使用的自托管监控工具。",
"features": null,
"docker_images": {
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/apps:uptimekuma": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/apps:uptimekuma"
},
"file_denylist": [],
"startup": "if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then npm run setup; fi; /usr/local/bin/node /home/container/server/server.js --port={{SERVER_PORT}}",
"config": {
"files": "{}",
"logs": "{}",
"startup": "{\r\n \"done\": \"[SERVER] INFO: Listening on \"\r\n}",
"stop": "^^C"
},
"scripts": {
"installation": {
"container": "node:18-alpine",
"entrypoint": "ash",
"script": "#!/bin/ash\r\n# Uptime Kuma App Installation Script\r\n#\r\n# Server Files: /mnt/server\r\napk update\r\napk add --no-cache git curl jq file unzip make gcc g++ python3 python3-dev libtool\r\napk add --no-cache git-lfs --repository=https://dl-cdn.alpinelinux.org/alpine/latest-stable/community\r\n\r\n## npm update to latest\r\necho -e \"Updating npm to latest....\\n\"\r\nif [ -d \"/mnt/server/node_modules\" ]; then\r\n rm -fR /mnt/server/node_modules\r\n npm cache verify\r\nfi\r\nnpm install -g npm@latest\r\n\r\n## Uptime Kuma install & update\r\nmkdir -p /mnt/server\r\ncd /mnt/server\r\ngit config --global --add safe.directory /mnt/server\r\n\r\nif [ -d .git ]; then\r\n echo -e \"Updating Uptime Kuma....\\n \"\r\n npm run setup\r\nelse\r\n echo -e \"Download and installing Uptime Kuma...\\n\" \r\n git clone https://github.com/louislam/uptime-kuma.git .\r\n npm run setup\r\nfi\r\n\r\n## only create dir, when .git is present to prevent errors\r\nif [ -d .git ]; then\r\n mkdir -p /mnt/server/data\r\nfi\r\n\r\nif [ ! -f \"/mnt/server/data/kuma.db\" ]; then\r\n cp /mnt/server/db/kuma.db /mnt/server/data/kuma.db\r\nfi\r\n\r\n## install end\r\necho -e \"-----------------------------------------\"\r\necho -e \"Installation completed...\"\r\necho -e \"-----------------------------------------\"\r\nexit 0"
}
},
"variables": [
{
"name": "Git 仓库地址",
"description": "要克隆的 GitHub 仓库\n\n例如:https://github.com/parkervcp/repo_name",
"env_variable": "GIT_ADDRESS",
"default_value": "https://github.com/louislam/uptime-kuma",
"user_viewable": false,
"user_editable": false,
"rules": "nullable|string",
"field_type": "text"
},
{
"name": "JS 文件",
"description": "启动应用程序的文件",
"env_variable": "JS_FILE",
"default_value": "server/server.js",
"user_viewable": false,
"user_editable": false,
"rules": "required|string",
"field_type": "text"
},
{
"name": "自动更新",
"description": "",
"env_variable": "AUTO_UPDATE",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "required|boolean",
"field_type": "text"
}
]
}附属文件
暂无附属文件
提交历史
[AI翻译] 描述、说明、JSON描述、变量
[AI翻译] 名称、描述、说明、JSON描述、变量
[AI翻译] 名称、描述、说明、JSON描述、变量
[AI翻译] 名称、描述、说明、JSON描述、变量
[AI翻译] 名称、描述、说明、JSON描述、变量
[AI翻译] 名称、描述、说明、JSON描述、变量
批量导入
Fork 关系
查看关系图暂无 Fork,成为第一个 Fork 的人吧!