diff --git a/docker/config.template.json b/docker/config.template.json index ce70053..c51515e 100644 --- a/docker/config.template.json +++ b/docker/config.template.json @@ -52,7 +52,7 @@ ], "BAIDU":[ { - "data_url":"https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt", + "data_url":"https://fastly.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt", "submit_url":"http://data.zz.baidu.com/urls?site=https://sitoi.cn&token=xxxxxx", "times":10 }, diff --git a/docker_start.sh b/docker_start.sh index 6141acd..b98b0f6 100644 --- a/docker_start.sh +++ b/docker_start.sh @@ -9,14 +9,14 @@ CRONTAB_FILE="cron/crontab_list.sh" if [ ! -f "$CONFIG_FILE" ]; then echo "config.json 不存在. 开始下载默认文件..." - curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/config.template.json -o $CONFIG_FILE + curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/config.template.json -o $CONFIG_FILE else echo "config.json 已存在. 跳过下载。" fi if [ ! -f "$CRONTAB_FILE" ]; then echo "crontab_list.sh 不存在. 开始下载默认文件..." - curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/crontab_list.sh -o $CRONTAB_FILE + curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/crontab_list.sh -o $CRONTAB_FILE else echo "crontab_list.sh 已存在. 跳过下载。" fi @@ -41,7 +41,7 @@ else else echo "docker-compose 环境存在,将使用 docker-compose 命令启动容器..." echo "下载 docker-compose.yml 文件" - curl -O https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/docker-compose.yml + curl -O https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/docker-compose.yml echo "开始通过 docker-compose 命令创建容器" docker-compose pull docker-compose up -d diff --git a/docs/pages/history/2024-01-14.mdx b/docs/pages/history/2024-01-14.mdx index 549c344..7a9930f 100644 --- a/docs/pages/history/2024-01-14.mdx +++ b/docs/pages/history/2024-01-14.mdx @@ -27,7 +27,7 @@ import { Callout } from 'nextra/components' 2. 更新 image 镜像{' '} ```bash copy -curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash +curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash ``` 运行成功会自动创建如下目录结构, 并成功启动 docker 服务。 @@ -121,7 +121,7 @@ docker exec dailycheckin sh /dailycheckin/default_task.sh ## 升级 Docker Image ```bash copy -curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash +curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash ``` ## 附录 diff --git a/docs/pages/settings/baidu.mdx b/docs/pages/settings/baidu.mdx index 38ce2d6..f952b3d 100644 --- a/docs/pages/settings/baidu.mdx +++ b/docs/pages/settings/baidu.mdx @@ -68,7 +68,7 @@ import { Cards, Card } from 'nextra/components' { "BAIDU": [ { - "data_url": "https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt", + "data_url": "https://fastly.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt", "submit_url": "http://data.zz.baidu.com/urls?site=https://sitoi.cn&token=xxxxxx", "times": 10 }, diff --git a/docs/pages/settings/config.mdx b/docs/pages/settings/config.mdx index efa3455..d645b17 100644 --- a/docs/pages/settings/config.mdx +++ b/docs/pages/settings/config.mdx @@ -71,7 +71,7 @@ import { Steps } from 'nextra/components' ], "BAIDU": [ { - "data_url": "https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt", + "data_url": "https://fastly.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt", "submit_url": "http://data.zz.baidu.com/urls?site=https://sitoi.cn&token=xxxxxx", "times": 10 },