侧边栏壁纸
博主头像
土拨鼠说Halo 博主等级

行动起来,活在当下

  • 累计撰写 42 篇文章
  • 累计创建 3 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

[装载]利用Cloudflare Workers实现网页状态监控

土拨鼠
2025-02-19 / 0 评论 / 0 点赞 / 0 阅读 / 0 字

教程 #工具 #Cloudflare

  1. 首先 Fork cf-workers-status-page 285

  2. 浏览器地址栏输入

https://deploy.workers.cloudflare.com/?url=https://github.com/$YourUserName/cf-workers-status-page 105

  1. 获取 Cloudflare 账户内的 Account ID 和 API Token

[iShot_2024-02-02_22.45.54

iShot_2024-02-02_22.45.54824×638 34.2 KB

](https://linux.do/uploads/default/original/2X/4/46598b094b0ca2eea8fd2721c24cb74ebbed64da.png “iShot_2024-02-02_22.45.54”)

授权的 token 需要 workes 的编辑权限

[iShot_2024-02-02_22.28.52

iShot_2024-02-02_22.28.523228×838 171 KB

](https://linux.do/uploads/default/original/2X/6/67f889d01f85973de17c1431eaeb61664611a563.png “iShot_2024-02-02_22.28.52”)

  1. 在 actions 选择 Deploy 点击开启 (重要,不然无法部署成功)

[iShot_2024-02-02_22.32.03

iShot_2024-02-02_22.32.03786×850 34.6 KB

](https://linux.do/uploads/default/original/2X/7/73a5936188e66d8f0e9d4288ef5f679d80d186d4.png “iShot_2024-02-02_22.32.03”)

  1. 最后修改定时更新 CRON

[iShot_2024-02-02_22.33.47

iShot_2024-02-02_22.33.471456×1196 114 KB

](https://linux.do/uploads/default/original/2X/6/622888bc2b0b004590d0b9503b4d9630158982fe.png “iShot_2024-02-02_22.33.47”)

crons = [“/2 * * * ”]

  1. 最后还可以设置你的二级域名,配置自己的网站直接查看项目的 readme

[iShot_2024-02-02_22.36.27

iShot_2024-02-02_22.36.273226×912 189 KB

](https://linux.do/uploads/default/original/2X/2/278fd3f06d8758df84bc241dfe4ec0d824c0cd63.png “iShot_2024-02-02_22.36.27”)

github.com

GitHub - eidam/cf-workers-status-page: Monitor your websites, showcase status including… 285

Monitor your websites, showcase status including daily history, and get Slack/Telegram/Discord notification whenever your website status
changes. Using Cloudflare Workers, CRON Triggers, and KV storage.

0

评论区