refactor: 更新脚本和配置文件的下载链接

- 将下载链接从 https://i.sugarscat.cn/ 更改为 https://i.37point2.cn/
- 更新了多个文件中的下载指令,包括 README.md、deploy.sh 和 nginx.conf
- 删除了 nginx/note.sugarscat.cn 相关的文件和配置
This commit is contained in:
2025-08-01 14:45:58 +08:00
parent 6216ce7485
commit beb26b6d68
21 changed files with 27 additions and 175 deletions

View File

@@ -3,7 +3,7 @@
## ACME安装
```bash
curl https://i.sugarscat.cn/i/script/raw/main/acme/acme.sh | sh -s -- --install
curl https://i.37point2.cn/i/script/raw/main/acme/acme.sh | sh -s -- --install
```
> [!TIP]

View File

@@ -3,5 +3,5 @@
## 217heidai
```txt
https://i.sugarscat.cn/i/script/raw/main/adguard/217heidai.txt
https://i.37point2.cn/i/script/raw/main/adguard/217heidai.txt
```

View File

@@ -5,7 +5,7 @@
### 初始化脚本
```bash
curl -LsSf https://i.sugarscat.cn/i/script/raw/main/bash/init.sh | bash
curl -LsSf https://i.37point2.cn/i/script/raw/main/bash/init.sh | bash
```
进行的操作有:
@@ -15,7 +15,7 @@ curl -LsSf https://i.sugarscat.cn/i/script/raw/main/bash/init.sh | bash
3. 设置时区 `Asia/Shanghai` 和时间同步
```bash
curl -LsSf https://i.sugarscat.cn/i/script/raw/main/bash/init-ali.sh | bash
curl -LsSf https://i.37point2.cn/i/script/raw/main/bash/init-ali.sh | bash
```
进行的操作有:

View File

@@ -16,13 +16,13 @@ Docker 提供了一个自动配置与安装的脚本,支持 Debian、RHEL、SU
使用 curl
```bash
curl -fsSL https://i.sugarscat.cn/i/script/raw/main/docker/install.sh | sh
curl -fsSL https://i.37point2.cn/i/script/raw/main/docker/install.sh | sh
```
使用 wget
```bash
wget -O- https://i.sugarscat.cn/i/script/raw/main/docker/install.sh | sh
wget -O- https://i.37point2.cn/i/script/raw/main/docker/install.sh | sh
```
## Debian/Ubuntu/Raspbian

View File

@@ -11,7 +11,7 @@
2. 下载 docker-compose.yml
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/docker/compose/adguardhome/docker-compose.yml > docker-compose.yml
curl -fSL https://i.37point2.cn/i/script/raw/main/docker/compose/adguardhome/docker-compose.yml > docker-compose.yml
```
## docker-compose 部署

View File

@@ -11,7 +11,7 @@ mkdir -p /opt/docker/clash && cd /opt/docker/clash
下载 docker-compose.yml
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/docker/compose/clash/docker-compose.yml > docker-compose.yml
curl -fSL https://i.37point2.cn/i/script/raw/main/docker/compose/clash/docker-compose.yml > docker-compose.yml
```
启动

View File

@@ -11,13 +11,13 @@
2. 下载 docker-compose.yml
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/docker/compose/frpc/docker-compose.yml > docker-compose.yml
curl -fSL https://i.37point2.cn/i/script/raw/main/docker/compose/frpc/docker-compose.yml > docker-compose.yml
```
3. 下载配置
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/docker/compose/frpc/frpc.toml > data/frpc.toml
curl -fSL https://i.37point2.cn/i/script/raw/main/docker/compose/frpc/frpc.toml > data/frpc.toml
```
## docker-compose 部署

View File

@@ -11,13 +11,13 @@
2. 下载 docker-compose.yml
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/docker/compose/frps/docker-compose.yml > docker-compose.yml
curl -fSL https://i.37point2.cn/i/script/raw/main/docker/compose/frps/docker-compose.yml > docker-compose.yml
```
3. 下载配置
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/docker/compose/frps/frps.toml > data/frps.toml
curl -fSL https://i.37point2.cn/i/script/raw/main/docker/compose/frps/frps.toml > data/frps.toml
```
## docker-compose 部署

View File

@@ -11,7 +11,7 @@
2. 下载 docker-compose.yml
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/docker/compose/gitea/docker-compose.yml > docker-compose.yml
curl -fSL https://i.37point2.cn/i/script/raw/main/docker/compose/gitea/docker-compose.yml > docker-compose.yml
```
## docker-compose 部署

View File

@@ -11,7 +11,7 @@
2. 下载 docker-compose.yml
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/docker/compose/gitlab/docker-compose.yml > docker-compose.yml
curl -fSL https://i.37point2.cn/i/script/raw/main/docker/compose/gitlab/docker-compose.yml > docker-compose.yml
```
## docker-compose 部署

View File

@@ -11,7 +11,7 @@
1. 下载 docker-compose.yml
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/docker/compose/rustdesk/docker-compose.yml > docker-compose.yml
curl -fSL https://i.37point2.cn/i/script/raw/main/docker/compose/rustdesk/docker-compose.yml > docker-compose.yml
```
## docker-compose 部署

View File

@@ -11,7 +11,7 @@
1. 下载 docker-compose.yml
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/docker/compose/vaultwarden/docker-compose.yml > docker-compose.yml
curl -fSL https://i.37point2.cn/i/script/raw/main/docker/compose/vaultwarden/docker-compose.yml > docker-compose.yml
```
## docker-compose 部署

View File

@@ -3,11 +3,11 @@
## 浏览器主页
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/html/start.html > start.html
curl -fSL https://i.37point2.cn/i/script/raw/main/html/start.html > start.html
```
## 404页面
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/html/404.html > 404.html
curl -fSL https://i.37point2.cn/i/script/raw/main/html/404.html > 404.html
```

View File

@@ -9,11 +9,11 @@ mkdir -p /var/www/37point2.cn
下载配置
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/nginx/37point2.cn/index.html > /var/www/37point2.cn/index.html
curl -fSL https://i.37point2.cn/i/script/raw/main/nginx/37point2.cn/index.html > /var/www/37point2.cn/index.html
```
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/nginx/37point2.cn/nginx.conf > /etc/nginx/sites-available/37point2.cn
curl -fSL https://i.37point2.cn/i/script/raw/main/nginx/37point2.cn/nginx.conf > /etc/nginx/sites-available/37point2.cn
```
启用配置

View File

@@ -31,7 +31,7 @@ systemctl status nginx
下载配置
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/nginx/nginx.conf > /etc/nginx/nginx.conf
curl -fSL https://i.37point2.cn/i/script/raw/main/nginx/nginx.conf > /etc/nginx/nginx.conf
```
测试配置

View File

@@ -3,7 +3,7 @@
下载配置
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/nginx/example/nginx.conf > /etc/nginx/sites-available/example.com
curl -fSL https://i.37point2.cn/i/script/raw/main/nginx/example/nginx.conf > /etc/nginx/sites-available/example.com
```
启用配置

View File

@@ -1,57 +0,0 @@
# note.sugarscat.cn
## 下载部署脚本
```bash
mkdir -p /opt/www/note && cd /opt/www/note
```
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/nginx/note.sugarscat.cn/deploy.sh > deploy.sh && chmod +x deploy.sh
```
## 定时执行脚本
```bash
crontab -e
```
每天天 0 点 执行一次:
```bash
0 0 * * * /opt/nginx/note/deploy.sh >> /opt/www/note/deploy.log 2>&1
```
查看定时器列表
```bash
crontab -l
```
## Nginx 配置
> 该配置需要在 `/etc/nginx/ssl/` 目录下创建 `fullchain.crt` 和 `privkey.key` 证书文件。
下载配置
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/nginx/note.sugarscat.cn/nginx.conf > /etc/nginx/sites-available/note.sugarscat.cn
```
启用配置
```bash
ln -s /etc/nginx/sites-available/note.sugarscat.cn /etc/nginx/sites-enabled/
```
测试配置
```bash
nginx -t
```
重启 nginx
```bash
systemctl restart nginx
```

View File

@@ -1,53 +0,0 @@
#!/bin/bash
# 开启严格模式
set -e
# 定义变量
REPO_URL="https://git.sugarscat.cn/me/note"
TARGET_DIR="/var/www/note"
DIST_DIR=".vitepress/dist"
TEMP_DIR=$(mktemp -d) # 生成临时目录
# 清理临时目录的函数(在脚本退出时执行)
cleanup() {
rm -rf "$TEMP_DIR"
}
trap cleanup EXIT
echo "开始下载最新构建产物..."
curl -L -o "$TEMP_DIR/artifact.zip" "$REPO_URL/-/jobs/artifacts/main/download?job=build"
# shellcheck disable=SC2181
if [ $? -ne 0 ]; then
echo "下载失败,请检查网络连接或重新尝试。"
exit 1
fi
# 检查 unzip 是否可用,不可用时自动安装
if ! command -v unzip &> /dev/null; then
echo "unzip 未安装,开始安装 ···"
if command -v apt-get &> /dev/null; then
sudo apt-get update
sudo apt-get install -y unzip
elif command -v yum &> /dev/null; then
sudo yum install -y unzip
else
echo "无法安装 unzip请手动安装。"
exit 1
fi
fi
echo "解压文件..."
unzip -q "$TEMP_DIR/artifact.zip" -d "$TEMP_DIR"
# 确保目标目录存在
sudo mkdir -p "$TARGET_DIR"
echo "清空目标目录..."
sudo rm -rf "$TARGET_DIR"/*
echo "移动文件到目标目录..."
sudo mv "$TEMP_DIR/$DIST_DIR"/* "$TARGET_DIR"
echo "部署完成!"

View File

@@ -1,38 +0,0 @@
server {
listen 80 ;
listen 443 ssl http2 ;
server_name note.sugarscat.cn;
# 重定向
if ($scheme = http) {
return 301 https://$host$request_uri;
}
# ssl 设置
ssl_certificate /etc/nginx/ssl/sugarscat.cn.crt;
ssl_certificate_key /etc/nginx/ssl/sugarscat.cn.key;
ssl_protocols TLSv1.3 TLSv1.2 TLSv1.1 TLSv1;
ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
add_header Strict-Transport-Security "max-age=31536000";
error_page 497 https://$host$request_uri;
proxy_set_header X-Forwarded-Proto https;
ssl_stapling on;
ssl_stapling_verify on;
root /var/www/note;
index index.html;
try_files $uri $uri.html $uri/ =404;
error_page 404 /404.html;
error_page 403 /404.html;
location ~* ^/assets/ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}

View File

@@ -5,7 +5,7 @@
1. 下载脚本:
```bash
curl -O https://i.sugarscat.cn/i/script/raw/main/python/delete_empty_folders.py
curl -O https://i.37point2.cn/i/script/raw/main/python/delete_empty_folders.py
```
2. 执行下载的脚本:

View File

@@ -5,13 +5,13 @@
1. 设置 `INSTALLER_BASE_URL` 环境变量
```bash
export INSTALLER_BASE_URL=https://b.sugarscat.cn
export INSTALLER_BASE_URL=https://b.37point2.cn
```
2. 安装 `uv`
```bash
curl -LsSf https://i.sugarscat.cn/i/script/raw/main/uv/install.sh | sh
curl -LsSf https://i.37point2.cn/i/script/raw/main/uv/install.sh | sh
```
## Windows 安装
@@ -19,11 +19,11 @@
1. 设置 `INSTALLER_BASE_URL` 环境变量
```bash
set INSTALLER_BASE_URL=https://b.sugarscat.cn
set INSTALLER_BASE_URL=https://b.37point2.cn
```
2. 安装 `uv`
```bash
powershell -ExecutionPolicy ByPass -c "irm https://i.sugarscat.cn/i/script/raw/main/uv/install.ps1 | iex"
powershell -ExecutionPolicy ByPass -c "irm https://i.37point2.cn/i/script/raw/main/uv/install.ps1 | iex"
```