del: 取消cloudflare优选ip功能

chore: 修改项目描述
This commit is contained in:
lyz05
2023-12-05 21:23:05 +08:00
parent 9b2ebeb50e
commit ece1b49f4d
3 changed files with 4461 additions and 8 deletions

View File

@@ -13,6 +13,13 @@
- express: web框架
- lib-qqwry: 纯真IP数据库
# 运行此项目
``` sh
pnpm install
pnpm run dev
pnpm run test # 单元测试
```
# 部署到fly.io
``` sh
curl -L https://fly.io/install.sh | sh #linux

4444
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -21,16 +21,18 @@ function subcache(app) {
module.exports = (app) => {
//TODO 添加自动删除一个月前的日志
console.log("schedule.js loaded");
// 自动刷新订阅
cron.schedule("0 */8 * * *", () => {
subcache(app);
});
cron.schedule("*/15 * * * *", () => {
cf2dns().then((result)=>{
leancloud.add("Schedule", {
name: "cf2dns",
result
});
});
});
// Cloudflare优选IP
// cron.schedule("*/15 * * * *", () => {
// cf2dns().then((result)=>{
// leancloud.add("Schedule", {
// name: "cf2dns",
// result
// });
// });
// });
};