Loading... 用Cloudflare轻松搭建Uptime-Flare监控服务!实时掌握网站状况! 本文转载自:https://am.809098.xyz/am-uptime-flare/ Uptime-Flare是一个监控工具,能够帮助你监控网站的可用性和性能。通过Cloudflare你可以轻松部署这个服务,免费监控你的网站,告别宕机烦恼! [原项目地址:](https://github.com/lyc8503/UptimeFlare) [其它项目地址](https://github.com/amclubs/am-uptime-flare) 一、需要准备的前提资料 创建Cloudflare TOKEN 用于github部署用 创建链接:https://dash.cloudflare.com/profile/api-tokens 点击创建令牌,选择 编辑 Cloudflare Workers 模板,然后将 帐户资源 设置为自己的账户。 区域资源 设置为 所有区域 二、部署uptime-flare 1、打开 [原项目地址:](https://github.com/lyc8503/UptimeFlare) [其它项目地址](https://github.com/amclubs/am-uptime-flare) 点击项目首页的 use this template ,然后点击 create new repo 完成项目创建 2、设置 SECRET 点击 settings -> secrets and variables -> new repo secret ② Name 的值是 CLOUDFLARE_API_TOKEN ③ Secret 的值是在CF获得的 Token 值 3、修改 uptime.config.ts 文件 修改 PageConfig 配置里的Links数组,这是监控首页的站点显示信,不是监控的站点,如 ``` links: [ { link: 'https://am.809098.xyz', label: '个人博客' }, { link: 'https://809098.xyz', label: 'Blog', highlight: true }, ] ``` 修改 WorkConfig 配置,里面是要监控的站点 ``` monitors: [ { id: 'am.809098.xyz', name: '个人博客', method: 'GET', target: 'https://am.809098.xyz', tooltip: 'My production server monitor', statusPageLink: 'https://am.809098.xyz', timeout: 10000, }, ], ``` 3、在github的actions看部署成功,就完成了部署  最后修改:2024 年 12 月 22 日 © 允许规范转载 打赏 赞赏作者 赞 如果觉得我的文章对你有用,请随意赞赏