type
status
date
slug
summary
tags
category
icon
password
🔥
前提是需要有一个自己的域名~最好是托管到CF大善人
注册 Uptime Robot 账号
只需要邮箱验证即可
添加站点监控
  • New Monitor
  • 可以看到支持Http(s)、关键字、端口、Ping等监控方式,根据需求自行进行选择
notion image
获取API Keys
  • 新站点没有找到入口,我们需要点击最上方的横幅,跳转到旧UI
    • notion image
  • 鼠标移到右上角账号头像处,选择下拉栏里的 My Settings
  • 滑到最下方,找到 API Settings Specific API针对单一的Monitor,Read-Only API就是针对整个账号。这里直接生成Read-Only Key就行。记下来,之后要用
notion image
fork项目项目并修改配置
  • 编辑 .env 配置文件 VITE_API_KEY = 刚刚记下的Read-Only Key
  • push修改到仓库
通过cloudflare worker部署面板
notion image
notion image
选择你刚才fork的仓库修改配置:
notion image
部署完成后修改自定义域
notion image
notion image
最后代理uptimerobot
  • 听说存在API跨域问题,所以需要用worker代理一下
  • 创建一个worker脚本:uptimerobot
  • 编辑代码:
部署后应该可以直接用得到的dev域名作为代理url也可以在自定义域中配置
notion image
配置代理
  • 回到你之前fork的项目仓库,编辑.env文件
  • VITE_GLOBAL_API = “https://uptimerobot.域名/v2/getMonitors” # 第三方反代
  • push修改到仓库
  • 这时你会发现在cf worker中的面板应用自动重新部署了
测试 API 和 代理url
VMware 17 Pro 安装 Ubuntu系统Vmail 临时邮箱部署教程
Loading...
2021-2025IMyself.

IMyself | 前端小萌新~