Skip to content

Commit 6aa9d07

Browse files
authored
Merge pull request Sitoi#293 from xubiaolin/main
📝 更新(docs):替换 cdn 地址
2 parents 9fb433d + 6553604 commit 6aa9d07

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

docker/config.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
],
5353
"BAIDU":[
5454
{
55-
"data_url":"https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
55+
"data_url":"https://fastly.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
5656
"submit_url":"http://data.zz.baidu.com/urls?site=https://sitoi.cn&token=xxxxxx",
5757
"times":10
5858
},

docker_start.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ CRONTAB_FILE="cron/crontab_list.sh"
99

1010
if [ ! -f "$CONFIG_FILE" ]; then
1111
echo "config.json 不存在. 开始下载默认文件..."
12-
curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/config.template.json -o $CONFIG_FILE
12+
curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/config.template.json -o $CONFIG_FILE
1313
else
1414
echo "config.json 已存在. 跳过下载。"
1515
fi
1616

1717
if [ ! -f "$CRONTAB_FILE" ]; then
1818
echo "crontab_list.sh 不存在. 开始下载默认文件..."
19-
curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/crontab_list.sh -o $CRONTAB_FILE
19+
curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/crontab_list.sh -o $CRONTAB_FILE
2020
else
2121
echo "crontab_list.sh 已存在. 跳过下载。"
2222
fi
@@ -41,7 +41,7 @@ else
4141
else
4242
echo "docker-compose 环境存在,将使用 docker-compose 命令启动容器..."
4343
echo "下载 docker-compose.yml 文件"
44-
curl -O https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/docker-compose.yml
44+
curl -O https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker/docker-compose.yml
4545
echo "开始通过 docker-compose 命令创建容器"
4646
docker-compose pull
4747
docker-compose up -d

docs/pages/history/2024-01-14.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Callout } from 'nextra/components'
2727
2. 更新 image 镜像{' '}
2828

2929
```bash copy
30-
curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash
30+
curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash
3131
```
3232

3333
<Callout

docs/pages/install/docker.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { FileTree } from 'nextra/components'
2424
运行如下命令一键启动并创建服务
2525

2626
```bash copy
27-
curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash
27+
curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash
2828
```
2929

3030
> 运行成功会自动创建如下目录结构, 并成功启动 docker 服务。
@@ -121,7 +121,7 @@ docker exec dailycheckin sh /dailycheckin/default_task.sh
121121
## 升级 Docker Image
122122

123123
```bash copy
124-
curl https://cdn.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash
124+
curl https://fastly.jsdelivr.net/gh/sitoi/dailycheckin@main/docker_start.sh | bash
125125
```
126126

127127
## 附录

docs/pages/settings/baidu.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ import { Cards, Card } from 'nextra/components'
6868
{
6969
"BAIDU": [
7070
{
71-
"data_url": "https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
71+
"data_url": "https://fastly.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
7272
"submit_url": "http://data.zz.baidu.com/urls?site=https://sitoi.cn&token=xxxxxx",
7373
"times": 10
7474
},

docs/pages/settings/config.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ import { Steps } from 'nextra/components'
7171
],
7272
"BAIDU": [
7373
{
74-
"data_url": "https://cdn.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
74+
"data_url": "https://fastly.jsdelivr.net/gh/Sitoi/Sitoi.github.io/baidu_urls.txt",
7575
"submit_url": "http://data.zz.baidu.com/urls?site=https://sitoi.cn&token=xxxxxx",
7676
"times": 10
7777
},

0 commit comments

Comments
 (0)