chore: 发布源与镜像指向自建 Gitea
- selfupdate:Release 改从 gitea.bcde.io/wangdefa/ARTEX 取,API 路径换成 /api/v1/repos/<repo>/releases/latest;白名单从 GitHub 五个域名收紧到 gitea.bcde.io;github.go 改名 source.go,文案统一为「发布源」。 - README:clone / Releases 链接与镜像说明改为 Gitea 地址,补充发布源写死说明。 - docker-compose:镜像改为 gitea.bcde.io/wangdefa/artex。 - 前端与 server/update.go:GitHub 文案改为「发布源」。
This commit is contained in:
1 parent
2511c2e041
commit
cadc8af05d
10 files changed
+57
-57
No files matched your search
@@ -69,7 +69,7 @@ AI 自主渗透测试系统(Go 后端 + Next.js 前端)
|
||||
### 方式一:一键安装脚本(推荐)
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Autumn-27/ARTEX.git
|
||||
git clone https://gitea.bcde.io/wangdefa/ARTEX.git
|
||||
cd ARTEX
|
||||
./install.sh
|
||||
```
|
||||
@@ -84,10 +84,10 @@ cd ARTEX
|
||||
### 方式二:Docker Compose(手动)
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Autumn-27/ARTEX.git
|
||||
git clone https://gitea.bcde.io/wangdefa/ARTEX.git
|
||||
cd ARTEX
|
||||
cp .env.example .env # 填 POSTGRES_PASSWORD、可选 ANTHROPIC_API_KEY
|
||||
docker compose up -d # 拉取 autumn27/artex 镜像 + postgres
|
||||
docker compose up -d # 拉取 gitea.bcde.io/wangdefa/artex 镜像 + postgres
|
||||
# → http://localhost:8787
|
||||
```
|
||||
|
||||
@@ -100,7 +100,7 @@ docker compose up -d # 拉取 autumn27/artex 镜像 + postgres
|
||||
|
||||
### 方式三:下载预编译二进制(Releases)
|
||||
|
||||
到 [Releases](https://github.com/Autumn-27/ARTEX/releases) 下载对应平台的 zip,解压后得到 `artex` + `start.sh`(Windows 为 `start.bat`)+ `skills/` + `config.example.json`:
|
||||
到 [Releases](https://gitea.bcde.io/wangdefa/ARTEX/releases) 下载对应平台的 zip,解压后得到 `artex` + `start.sh`(Windows 为 `start.bat`)+ `skills/` + `config.example.json`:
|
||||
|
||||
```bash
|
||||
cp config.example.json config.json # 填好 database 连接
|
||||
@@ -155,7 +155,7 @@ ARTEX_TARGETS=linux/amd64,windows/amd64 ./build.sh --release
|
||||
- **更新会中断正在运行的任务**——更新即重启,请在空闲时进行。
|
||||
- **开发构建不给更新**:版本号是 `dev` 或 `git describe` 带后缀时禁用,避免正式版覆盖掉本地调试的二进制。
|
||||
- **Docker 下只换程序、不换镜像**:镜像里的 playwright / nmap 等工具链不会跟着升级,且 `docker compose up -d` 重建容器后会退回镜像自带的版本。要连镜像一起升级仍请用 `docker compose pull artex && docker compose up -d artex`。
|
||||
- 访问 GitHub 需要代理时,在同一页面配置**全局代理**即可,更新链路会走它。更新只从 GitHub 域名下载并强制 HTTPS。
|
||||
- 发布源固定为 **gitea.bcde.io/wangdefa/ARTEX**,写死在二进制里、不提供配置项(更新源可配等于给任何能改配置的人一条远程代码执行通道)。需要代理时在同一页面配置**全局代理**即可,更新链路会走它;只允许 HTTPS 且域名白名单仅含该站点。
|
||||
|
||||
### 方式二:一键更新脚本
|
||||
|
||||
@@ -182,7 +182,7 @@ docker image prune -f # 清理旧镜像(可选)
|
||||
|
||||
### 方式四:预编译二进制(Releases)
|
||||
|
||||
到 [Releases](https://github.com/Autumn-27/ARTEX/releases) 下载新版本 zip,停掉旧进程后覆盖 `artex` 与 `skills/`(保留你的 `config.json` 与 `data/`),重启即可:
|
||||
到 [Releases](https://gitea.bcde.io/wangdefa/ARTEX/releases) 下载新版本 zip,停掉旧进程后覆盖 `artex` 与 `skills/`(保留你的 `config.json` 与 `data/`),重启即可:
|
||||
|
||||
```bash
|
||||
cp -r <解压目录>/skills ./ && cp <解压目录>/artex ./
|
||||
|
||||
Reference in new issue
Block a user