谷姐:我们都是谷歌迷
We are all Google fans

使用CF Workers做Status Page 云探针-小助手

Rate this post

一直很想做一个Status Page, 但是很多都是付费的,或者免费的有限制。
我无意中,看到了这个开源的
https://github.com/eidam/cf-workers-status-page

样板:https://status-page.eidam.dev/

本来我想就是通过CF的全球性,可以在全球知道我的网站在各地的联通率、联通速度。
这个的问题在于,使用CF Worker, CRON地点无法选择。大佬们可以参考一下,然后把他改的更加完美。

步骤:
1. 点击Depoly with Workers链接
授权CF Workers
这个链接第一次是授权CF Workers访问你的GitHub, 第二次才是填写具体的Accound ID, API Token。
我发现点击第二次出错概率比较大,本来是可以自动fork的,但是经常报错。所以,我先fork了。

1.1 (可选)修改Deploy with Workers链接
然后将Deploy with Workers的链接,修改为自己fork的链接

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

2. 复制Account ID 和API Token
Account ID是Worker首页上的Account ID, API Token 可以在第二次点击后创建。
创建的时候确认权限为“Edit Cloudflare Workers”,里面只有两个必填项,我都选择了全部。
API Token只出现一次,之后将不在出现。

3. GitHub Action
根据他的下一步在Action里面Enable workflow

4. 修改config.yaml
直接修改monitors下的网站,网址,是否支持redirect等。

5. 修改 wrangler.toml
修改以适用CF 免费版
将里面cron项,修改为:

    crons = ["*/2 * * * *"]

Deploy Fail的修复
在wrangler.toml中添加 (第5行后)

    compatibility_date = "2021-10-11"

热议
推荐楼 ChenYFan 6小时前

这个不算是探针,只能算是在线率展示,而且这个项目很早就有了。

2楼 笑花落半世琉璃 6小时前

吃灰鸡那么多,总能拿出一只来挂探针

4楼 ChenYFan 6小时前

而且这cron是不能改。cfworker的出口ip是cf分配的,无法修改

5楼 guonning2000 6小时前

可以有

6楼 等1下™我老公呢 6小时前

看起来不错

7楼 feixiang 5小时前

字太多了,表示学不会。。

8楼 kylehao 5小时前

这个可以当云监控来用吧

9楼 纯之 4小时前

绑定

10楼 love2wind 3小时前

ssl监控

很多大佬用这个

13楼 noip 半小时前

年纪大了 字一多就看不下去了

14楼 干货插眼小助手 2分钟前

现已加入 Cloudflare Worker 豪华午餐:

    Cloudflare Worker Status Page 网站状态监控
    https://github.com/eidam/cf-workers-status-pageEuserv 自动续费基于 Cloudflare Workers
    https://github.com/xhuanya/CF-euserv_autoIPFS_PHOTO_SHARE 基于 IPFS 的无服务器图片站
    https://github.com/ChenYFan-Tester/IPFS_PHOTO_SHARE解决跨域问题
    https://github.com/netnr/workerscloudflare-worker-blog
    https://github.com/kasuganosoras/cloudflare-worker-blog基于 Cloudflare Workers 和 KV 的博客
    https://github.com/gdtool/cloudflare-workers-blog基于 Telegraf 框架的 Telegram Bot
    https://moe.best/tutorial/cfworker-telegraf-tgbot.html反代 Telegram Bot API另一个反代 Telegram Bot API
    https://paste.ubuntu.com/p/2w8KsyGvCg反代企业微信 API
    [url][url]https://hostloc.com/thread-808429-1-1.html[/url][/url][url][url]https://hostloc.com/thread-807156-1-1.html[/url][/url]GDIndex 谷歌网盘列表
    https://github.com/maple3142/GDIndexPanList 百度网盘列表
    https://github.com/ChenYFan/PanListPanDownload 网页版
    https://github.com/TkzcM/baiduwpOnePoint 一个轻量级、多平台、多网盘的文件目录索引工具
    https://github.com/ukuq/onepoint/tree/master/worker创建 Office 子账号
    https://github.com/zayabighead/Office-User-Auto-Create创建 Google 团队盘
    https://github.com/yyuueexxiinng ... -share-teamdrive.js下载辅助工具
    https://github.com/ukuq/cloudflare/blob/master/proxy.js
    https://www.onesrc.cn/p/using-cl ... load-assistant.html加速 github 文件
    https://github.com/hunshcn/gh-proxy/blob/master/index.js短网址
    https://github.com/xyTom/Url-Shorten-Worker
    https://github.com/Closty/duanwangzhi导航站
    https://github.com/sleepwood/CF-Worker-DirFruition 反代 Notion 构建博客
    https://www.notion.so/771ef38657244c27b9389734a9cbff44Notion Private API
    https://github.com/splitbee/notion-api-worker反代 91图片反代
    https://github.com/JAVClub/workers/blob/master/img.jsOneManager CloudFlare Workers 版本
    https://github.com/qkqpttgf/OneManager-cfworkerskvonedrive-cf-index
    https://github.com/spencerwooo/onedrive-cf-indexFast OneDrive Index
    http://github.com/vcheckzen/FODI
    https://logi.im/back-end/fodi-on-cloudflare.html

    申明:本文内容由网友收集分享,仅供学习参考使用。如文中内容侵犯到您的利益,请在文章下方留言,本站会第一时间进行处理。

未经谷姐允许不得转载:谷姐靓号网 » 使用CF Workers做Status Page 云探针-小助手
分享到: 生成海报

热门文章

评论 抢沙发

评论前必须登录!

立即登录   注册

买Google Voice认准【谷姐靓号网】

Google Voice靓号列表Google Voice自助购买
切换注册

登录

忘记密码 ?

切换登录

注册

我们将发送一封验证邮件至你的邮箱, 请正确填写以完成账号注册和激活