[优化] 更新包名

This commit is contained in:
ryan
2026-03-10 17:07:36 +08:00
parent 08e4de4898
commit 9d4f4450ca
52 changed files with 975 additions and 986 deletions
+2 -2
View File
@@ -40,13 +40,13 @@ npm run build
```bash
cd atsf_server
export SESSION_SECRET='replace-with-random-string'
export SQLITE_PATH='./gin-template.db'
export SQLITE_PATH='./atsflare.db'
go run .
```
说明:
- 如果未设置 `SQLITE_PATH`,默认也会落到 `atsf_server/gin-template.db`
- 如果未设置 `SQLITE_PATH`,默认也会落到 `atsf_server/atsflare.db`
- 当前不再依赖全局 `AGENT_TOKEN` 环境变量
- 节点接入凭证改由数据库保存:节点专属 `agent_token` + 系统级 `discovery token`
- 当前默认监听端口为 `3000`
+5 -5
View File
@@ -94,12 +94,12 @@
### Server
控制中心直接基于现有 `atsf_server` 的 `gin-template` 工程开发:
控制中心直接基于现有 `atsf_server` 的 `ATSFlare` 工程开发:
* Web 框架:Gin
* ORM:GORM
* 前端:沿用现有 web 管理端
* 鉴权:沿用 gin-template 登录体系
* 鉴权:沿用 ATSFlare 登录体系
### 数据库
@@ -139,7 +139,7 @@ Agent 使用 Go 单体程序:
```text
┌────────────────────────────┐
│ ATSFlare Server │
│ gin-template + SQLite │
│ ATSFlare + SQLite │
│ Admin UI + Admin API │
└──────────────┬─────────────┘
│
@@ -548,7 +548,7 @@ Agent 每次上报:
管理端:
* 直接沿用 gin-template 的登录态
* 直接沿用 ATSFlare 的登录态
Agent(第一版):
@@ -567,7 +567,7 @@ Agent(第二版):
### 12.1 登录页
沿用 gin-template 现有登录。
沿用 ATSFlare 现有登录。
### 12.2 反代规则页(第一版,已实现)
+3 -3
View File
@@ -41,7 +41,7 @@
* ORM:GORM
* 数据库:SQLite
* 前端:现有 `atsf_server/web`
* 登录体系:沿用 gin-template 现有能力
* 登录体系:沿用 ATSFlare 现有能力
约束:
@@ -126,7 +126,7 @@ Agent 放在 `atsf_agent`,使用 Go 单体程序开发。
* 所有发布都是"新版本激活",不是在线覆盖编辑。
* 第一版与第二版:所有节点默认拉同一份全量配置,不做节点分组差异化下发。
* 能用 SQLite 解决的问题,不引入额外中间件。
* 新功能优先复用现有 gin-template 结构,不平行造第二套框架。
* 新功能优先复用现有 ATSFlare 结构,不平行造第二套框架。
## 5. 数据模型规范
@@ -205,7 +205,7 @@ Server 代码按以下职责拆分:
管理端:
* 继续复用 gin-template 的登录、角色和 session 体系
* 继续复用 ATSFlare 的登录、角色和 session 体系
Agent(第一版):
+2 -2
View File
@@ -138,7 +138,7 @@ MVP 已于第一版完成。当前进入第二版迭代。
* 节点配置文件填写节点专属 `agent_token` 时,可直接上线;若 `agent_token` 为空且填写全局 discovery token,则会自动注册并完成 token 置换
### V2 Phase 4: 路由自定义头
### V2 Phase 4: 路由自定义头 ✅
目标:
@@ -155,7 +155,7 @@ MVP 已于第一版完成。当前进入第二版迭代。
* 路由配置自定义头后发布,渲染结果包含对应 `proxy_set_header` 指令
* 不配置自定义头的路由渲染行为与之前保持一致
### V2 Phase 5: 配置预览与变更摘要
### V2 Phase 5: 配置预览与变更摘要 ✅
目标: