mirror of
https://github.com/lyz05/danmaku.git
synced 2026-02-03 02:04:38 +08:00
del: 取消cloudflare优选ip功能
chore: 修改项目描述
This commit is contained in:
@@ -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
4444
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user