c

cloudflare

LiuShen
Last active 1 week ago cloudflare ip

CF优选IP,个人使用,适合某种极端网络环境

0 0 2
1 47.57.181.17:443#SJC-IPv4-US-North America-San Jose-AS45102-Alibaba (US) Technology Co., Ltd.
2 8.217.117.88:443#SJC-IPv4-US-North America-San Jose-AS45102-Alibaba (US) Technology Co., Ltd.
3 179.255.141.74:443#LAX-IPv6-US-North America-Los Angeles-AS906-DMIT Cloud Services
4 179.253.238.235:443#LAX-IPv6-US-North America-Los Angeles-AS906-DMIT Cloud Services
5 23.246.154.171:443#SJC-IPv6-US-North America-San Jose-AS402681-AYIT
6 131.143.251.186:443#LAX-IPv6-US-North America-Los Angeles-AS212336-ByteVirt LLC
7 179.253.255.184:443#LAX-IPv6-US-North America-Los Angeles-AS906-DMIT Cloud Services
8 179.255.111.93:443#LAX-IPv6-US-North America-Los Angeles-AS906-DMIT Cloud Services
9 179.253.255.9:443#LAX-IPv6-US-North America-Los Angeles-AS906-DMIT Cloud Services
10 179.253.251.146:443#LAX-IPv6-US-North America-Los Angeles-AS906-DMIT Cloud Services
LiuShen
Last active 6 months ago api bing cache cloudflare worker

利用CF Worker实现一个每日bing一图接口API,可以直接用作图片数据。

0 0 1
1 // 利用api.nsmao.net实现的bing接口
2 const API_KEY = "ajdlfklahweufbrffbhjefjfsmd,shj" // 自行申请API
3 const CACHE_TTL = 36000 // 10 小时
4
5 export default {
6 async fetch(request, env, ctx) {
7 const { pathname } = new URL(request.url)
8
9 // 首页说明
10 if (pathname === "/") {
LiuShen
Last active 6 months ago Javascript cloudflare commit github-api worker

通过cloudflare Worker创建github api中间件,在隐藏token的情况下获取仓库提交信息

0 0 1
1 /**
2 * Welcome to Cloudflare Workers! This is your first worker.
3 *
4 * - Run "npm run dev" in your terminal to start a development server
5 * - Open a browser tab at http://localhost:8787/ to see your worker in action
6 * - Run "npm run deploy" to publish your worker
7 *
8 * Learn more at https://developers.cloudflare.com/workers/
9 */