16 Commits
11 changed files with 197 additions and 223 deletions
+2 -1
View File
@@ -17,7 +17,8 @@ RUN CGO_ENABLED=0 GOOS=linux go build \
-o frpc-console . -o frpc-console .
FROM alpine:latest FROM alpine:latest
# 先切换到国内镜像源,再安装包
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk --no-cache add ca-certificates tzdata sqlite RUN apk --no-cache add ca-certificates tzdata sqlite
WORKDIR /app WORKDIR /app
+30
View File
@@ -0,0 +1,30 @@
# 多阶段构建
FROM golang:alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN sed -i 's/go 1.2[6-9].*/go 1.21/' go.mod && go mod tidy
RUN go env -w GOPROXY=https://goproxy.cn,direct
RUN go mod download
COPY . .
# 编译时不注入任何版本信息(纯净二进制)
RUN CGO_ENABLED=0 GOOS=linux go build \
-ldflags="-s -w" \
-o frpc-console .
FROM alpine:latest
RUN apk --no-cache add ca-certificates tzdata sqlite
WORKDIR /app
COPY --from=builder /app/frpc-console /app/frpc-console
COPY static/ /app/static/
EXPOSE 9300
ENTRYPOINT ["/app/frpc-console"]
+12 -13
View File
@@ -151,12 +151,12 @@ generate_target_version() {
} }
get_current_version() { get_current_version() {
local version_file="${DEPLOY_DIR}/version.ini" local version_file="${DEPLOY_DIR}/data/version.ini"
if [ -f "$version_file" ]; then if [ -f "$version_file" ]; then
grep -v "^[;#]" "$version_file" | head -1 | tr -d '\n' grep -v "^[;#]" "$version_file" | head -1 | tr -d '\n'
else else
if [ "$CONTAINER_EXISTS" = true ]; then if [ "$CONTAINER_EXISTS" = true ]; then
docker exec frpc-console cat /app/version.ini 2>/dev/null | grep -v "^[;#]" | head -1 | tr -d '\n' || echo "" docker exec frpc-console cat /app/data/version.ini 2>/dev/null | grep -v "^[;#]" | head -1 | tr -d '\n' || echo ""
else else
echo "" echo ""
fi fi
@@ -325,7 +325,6 @@ do_deploy() {
# ----- 事务前钩子:备份数据库(仅降级时) ----- # ----- 事务前钩子:备份数据库(仅降级时) -----
BACKUP_DIR="" BACKUP_DIR=""
if [ -n "$CURRENT_VERSION" ] && [ -n "$TARGET_VERSION" ]; then if [ -n "$CURRENT_VERSION" ] && [ -n "$TARGET_VERSION" ]; then
# 提取语义版本比较
CUR_SEMVER=$(echo "$CURRENT_VERSION" | sed -E 's/^([0-9]+\.[0-9]+).*$/\1/') CUR_SEMVER=$(echo "$CURRENT_VERSION" | sed -E 's/^([0-9]+\.[0-9]+).*$/\1/')
TGT_SEMVER=$(echo "$TARGET_VERSION" | sed -E 's/^([0-9]+\.[0-9]+).*$/\1/') TGT_SEMVER=$(echo "$TARGET_VERSION" | sed -E 's/^([0-9]+\.[0-9]+).*$/\1/')
if [ "$TGT_SEMVER" \< "$CUR_SEMVER" ] 2>/dev/null; then if [ "$TGT_SEMVER" \< "$CUR_SEMVER" ] 2>/dev/null; then
@@ -410,11 +409,9 @@ OLD_PID="${DEPLOY_DIR}/frpc.pid"
OLD_VERSION="${DEPLOY_DIR}/version.ini" OLD_VERSION="${DEPLOY_DIR}/version.ini"
NEW_DB="${DATA_DIR}/frpc-console.db" NEW_DB="${DATA_DIR}/frpc-console.db"
# 如果根目录有旧数据库文件,但 data/ 目录没有,执行迁移
if [ -f "$OLD_DB" ] && [ ! -f "$NEW_DB" ]; then if [ -f "$OLD_DB" ] && [ ! -f "$NEW_DB" ]; then
print_warn "检测到旧版本数据库文件在根目录,将迁移到 data/ 子目录" print_warn "检测到旧版本数据库文件在根目录,将迁移到 data/ 子目录"
# 备份旧文件
BACKUP_OLD_DIR="${DEPLOY_DIR}/.old_backup_$(date +%Y%m%d_%H%M%S)" BACKUP_OLD_DIR="${DEPLOY_DIR}/.old_backup_$(date +%Y%m%d_%H%M%S)"
mkdir -p "$BACKUP_OLD_DIR" mkdir -p "$BACKUP_OLD_DIR"
@@ -425,7 +422,6 @@ if [ -f "$OLD_DB" ] && [ ! -f "$NEW_DB" ]; then
fi fi
done done
# 复制文件到 data/ 目录
for file in frpc-console.db frpc.toml frpc.log frpc.pid version.ini; do for file in frpc-console.db frpc.toml frpc.log frpc.pid version.ini; do
if [ -f "${DEPLOY_DIR}/${file}" ]; then if [ -f "${DEPLOY_DIR}/${file}" ]; then
cp "${DEPLOY_DIR}/${file}" "${DATA_DIR}/" 2>/dev/null || true cp "${DEPLOY_DIR}/${file}" "${DATA_DIR}/" 2>/dev/null || true
@@ -471,7 +467,6 @@ docker build --no-cache \
# ----- 启动新容器 ----- # ----- 启动新容器 -----
print_step "启动 frpc-console 容器..." print_step "启动 frpc-console 容器..."
# 启动容器(只挂载数据目录)
docker run -d \ docker run -d \
--name frpc-console \ --name frpc-console \
--restart=always \ --restart=always \
@@ -509,20 +504,24 @@ docker build --no-cache \
print_warn "frpc 进程未运行(PID 文件不存在,请导入 TOML 后重试)" print_warn "frpc 进程未运行(PID 文件不存在,请导入 TOML 后重试)"
fi fi
# ----- 验证数据库 ----- # ----- 事务后钩子:检测数据库 -----
print_step "验证数据库状态..." print_step "验证数据库状态..."
if docker exec frpc-console sqlite3 /app/frpc-console.db "SELECT COUNT(*) FROM users;" 2>/dev/null | grep -q "^[0-9]"; then if docker exec frpc-console sqlite3 /app/data/frpc-console.db "SELECT COUNT(*) FROM users;" 2>/dev/null | grep -q "^[0-9]"; then
print_success "数据库可用" print_success "数据库可用"
else else
print_warn "数据库为空或不可用,请通过 WebUI 注册管理员账户" print_warn "数据库为空或不可用,请通过 WebUI 注册管理员账户"
fi fi
# ----- 验证版本 ----- # ----- 验证版本 -----
CONTAINER_VERSION=$(docker exec frpc-console cat /app/version.ini 2>/dev/null | tr -d '\n' || echo "") print_step "验证版本..."
sleep 1
CONTAINER_VERSION=$(docker exec frpc-console cat /app/data/version.ini 2>/dev/null | grep -v "^[;#]" | head -1 | tr -d '\n' || echo "unknown")
echo -e " 容器版本: ${CONTAINER_VERSION}"
echo -e " 目标版本: ${TARGET_VERSION}"
if [ "$CONTAINER_VERSION" = "$TARGET_VERSION" ]; then if [ "$CONTAINER_VERSION" = "$TARGET_VERSION" ]; then
print_success "容器版本验证通过: ${CONTAINER_VERSION}" print_success "版本写入成功"
else else
print_warn "容器版本: ${CONTAINER_VERSION}, 目标版本: ${TARGET_VERSION}" print_warn "版本不匹配,请检查"
fi fi
# ----- 清理旧镜像 ----- # ----- 清理旧镜像 -----
@@ -576,7 +575,7 @@ docker build --no-cache \
echo -e " ${CYAN}常用命令:${NC}" echo -e " ${CYAN}常用命令:${NC}"
echo " docker logs frpc-console # 查看日志" echo " docker logs frpc-console # 查看日志"
echo " docker restart frpc-console # 重启服务" echo " docker restart frpc-console # 重启服务"
echo " cat ${DEPLOY_DIR}/version.ini # 查看当前版本" echo " cat ${DEPLOY_DIR}/data/version.ini # 查看当前版本"
echo "" echo ""
echo -e " ${YELLOW}首次访问需要注册管理员账户${NC}" echo -e " ${YELLOW}首次访问需要注册管理员账户${NC}"
echo "" echo ""
+12 -4
View File
@@ -25,12 +25,12 @@ var FrpcTemplateContent string
var ( var (
cachedFrpcPath string cachedFrpcPath string
frpsPathMutex sync.Mutex frpcPathMutex sync.Mutex
) )
func getFrpcPath() (string, error) { func getFrpcPath() (string, error) {
frpsPathMutex.Lock() frpcPathMutex.Lock()
defer frpsPathMutex.Unlock() defer frpcPathMutex.Unlock()
if cachedFrpcPath != "" { if cachedFrpcPath != "" {
if _, err := os.Stat(cachedFrpcPath); err == nil { if _, err := os.Stat(cachedFrpcPath); err == nil {
@@ -144,7 +144,6 @@ func GenerateFrpcConfig() error {
return fmt.Errorf("渲染模板失败: %w", err) return fmt.Errorf("渲染模板失败: %w", err)
} }
// 所有文件写入 ./data/ 目录
if err := os.MkdirAll("./data", 0755); err != nil { if err := os.MkdirAll("./data", 0755); err != nil {
return fmt.Errorf("创建 data 目录失败: %w", err) return fmt.Errorf("创建 data 目录失败: %w", err)
} }
@@ -219,6 +218,15 @@ func StartFrpc() error {
return fmt.Errorf("启动 frpc 失败: %w", err) return fmt.Errorf("启动 frpc 失败: %w", err)
} }
// 回收子进程(防止僵尸进程)
go func() {
if err := cmd.Wait(); err != nil {
log.Printf("frpc 子进程退出: %v", err)
}
// 子进程退出后清理 PID 文件
os.Remove("./data/frpc.pid")
}()
if err := os.WriteFile("./data/frpc.pid", []byte(fmt.Sprintf("%d", cmd.Process.Pid)), 0644); err != nil { if err := os.WriteFile("./data/frpc.pid", []byte(fmt.Sprintf("%d", cmd.Process.Pid)), 0644); err != nil {
return fmt.Errorf("保存 PID 失败: %w", err) return fmt.Errorf("保存 PID 失败: %w", err)
} }
+3 -13
View File
@@ -35,20 +35,17 @@
适用于 Linux / Windows,无需 Docker,单文件运行。 适用于 Linux / Windows,无需 Docker,单文件运行。
👉 详见:([二进制安装指南](https://git.whitetop.xyz/lxh2875931338/frpc-console/src/branch/main/install_binary.md)) 👉 详见:[二进制安装指南](./INSTALL_BINARY.md)
### 🐳 Docker 部署(一键脚本) ### 🐳 Docker 部署(一键脚本)
适用于 Linux 服务器,自动编译 + 自动部署。 适用于 Linux 服务器,自动编译 + 自动部署。
> ⚠️ **注意**:Docker 版直接从源码构建,使用的是当前 `main` 分支的最新代码,更新进度会远快于 Release 版本。⚠️</br>
> 如需使用特定版本(如 LTS),请查看 [Releases](https://git.whitetop.xyz/lxh2875931338/frpc-console/releases) 确认版本号,并通过二进制方式部署指定版本。
```bash ```bash
curl -sSL https://git.whitetop.xyz/lxh2875931338/frpc-console/raw/main/deploy.sh | sudo bash curl -sSL https://git.whitetop.xyz/lxh2875931338/frpc-console/raw/main/deploy.sh | sudo bash
``` ```
👉 详见:([Docker 安装指南](https://git.whitetop.xyz/lxh2875931338/frpc-console/src/branch/main/install_docker.md)) 👉 详见:[Docker 安装指南](./INSTALL_DOCKER.md)
### 🔧 源码编译 ### 🔧 源码编译
@@ -261,14 +258,7 @@ frpc-console 遵循 **“够用就好”** 的原则:
## 📝 更新日志 ## 📝 更新日志
<<<<<<< HEAD #### 相关更新日志请查看[update-logs.md](./update-logs.md)
完整更新日志请查看[update-logs](https://git.whitetop.xyz/lxh2875931338/frpc-console/src/branch/main/update-logs.md)
=======
## 📝 更新日志
####相关更新日志请查看[update-logs.md](https://git.whitetop.xyz/lxh2875931338/frpc-console/raw/main/update-logs.md)
>>>>>>> test
--- ---
Binary file not shown.
+10 -8
View File
@@ -100,7 +100,8 @@
<!-- Ping 延迟显示 --> <!-- Ping 延迟显示 -->
<span class="ping-display" :class="pingStatusClass"> <span class="ping-display" :class="pingStatusClass">
<span class="ping-icon" v-html="pingIcon"></span> <span class="ping-icon" v-html="pingIcon"></span>
<span class="ping-value">{{ pingLatency !== null ? pingLatency + 'ms' : '--ms' }}</span> <span class="ping-value">{{ pingLatency !== null ? pingLatency + 'ms' : '--ms'
}}</span>
</span> </span>
</span> </span>
</div> </div>
@@ -343,6 +344,14 @@
</div> <!-- /content-area --> </div> <!-- /content-area -->
<!-- ====== 弹窗 ====== --> <!-- ====== 弹窗 ====== -->
</div> <!-- /main-panel -->
</div> <!-- /app-container -->
<!-- 隐藏文件选择器 -->
<input type="file" id="tomlFileInput" accept=".toml" style="display:none" @change="handleImport" />
<Transition name="dialog"> <Transition name="dialog">
<div v-if="dialogVisible" class="dialog-overlay" @click.self="dialogVisible = false"> <div v-if="dialogVisible" class="dialog-overlay" @click.self="dialogVisible = false">
<div class="dialog-card"> <div class="dialog-card">
@@ -371,13 +380,6 @@
</div> </div>
</div> </div>
</Transition> </Transition>
</div> <!-- /main-panel -->
</div> <!-- /app-container -->
<!-- 隐藏文件选择器 -->
<input type="file" id="tomlFileInput" accept=".toml" style="display:none" @change="handleImport" />
</div> <!-- /#app --> </div> <!-- /#app -->
<script src="/static/app.js"></script> <script src="/static/app.js"></script>
+22 -23
View File
@@ -1,30 +1,28 @@
/* ===== style-1.css - 全局基础 ===== */ /* ===== style-1.css - 全局基础 ===== */
/* ---------- 字体定义 ---------- */ /* ---------- 字体定义 ---------- */
/* 自托管 HarmonyOS Sans SC Regular */
/* 中英文:HarmonyOS Sans SC Regular */
@font-face { @font-face {
font-family: 'HarmonyOS Sans SC'; font-family: 'HarmonyOS Sans SC';
src: local('HarmonyOS Sans SC'), src: url('./fonts/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
local('PingFang SC'),
local('Microsoft YaHei'),
local('Helvetica Neue');
font-weight: 400; font-weight: 400;
font-style: normal;
font-display: swap; font-display: swap;
} }
/* 数字专用:复用 HarmonyOS Sans SC Regular(因 Light 版本缺失) */
@font-face { @font-face {
font-family: 'HarmonyOS Sans SC'; font-family: 'HarmonyOS Sans';
src: local('HarmonyOS Sans SC Medium'), src: url('./fonts/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
local('PingFang SC Medium'); font-weight: 300;
font-weight: 500; font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'HarmonyOS Sans SC';
src: local('HarmonyOS Sans SC Bold'),
local('PingFang SC Semibold');
font-weight: 700;
font-display: swap; font-display: swap;
} }
/* 后备:如果自托管字体加载失败,使用系统字体 */
/* ---------- 重置 ---------- */ /* ---------- 重置 ---------- */
* { * {
margin: 0; margin: 0;
@@ -33,14 +31,14 @@
} }
body { body {
font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; font-family: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
background: #0a0a0f; background: #0a0a0f;
height: 100vh; height: 100vh;
overflow: hidden; overflow: hidden;
color: #e0e0e0; color: #e0e0e0;
} }
/* ---------- 数字专用字体(加粗 ---------- */ /* ---------- 数字专用字体(使用 HarmonyOS Sans ---------- */
.digit, .digit,
.big-number, .big-number,
.remote-port, .remote-port,
@@ -51,22 +49,23 @@ body {
.login-btn, .login-btn,
.save-btn, .save-btn,
.btn-confirm { .btn-confirm {
font-weight: 600 !important; font-weight: 300 !important;
letter-spacing: 0.02em; letter-spacing: 0.02em;
font-family: 'HarmonyOS Sans', 'JetBrains Mono', monospace;
} }
/* 数字特别加粗(适用于大数字展示) */ /* 数字特别加粗(适用于大数字展示) */
.big-number { .big-number {
font-weight: 700 !important; font-weight: 600 !important;
letter-spacing: -0.01em; letter-spacing: -0.01em;
} }
/* 代码/端口类数字使用等宽字体,但保持加粗 */ /* 代码/端口类数字使用等宽字体,但保持 HarmonyOS Sans 风格 */
.digit, .digit,
.remote-port, .remote-port,
.proxy-addr { .proxy-addr {
font-family: 'HarmonyOS Sans SC', 'JetBrains Mono', monospace; font-family: 'HarmonyOS Sans', 'JetBrains Mono', monospace;
font-weight: 600 !important; font-weight: 300 !important;
} }
/* ---------- 全局颜色变量 ---------- */ /* ---------- 全局颜色变量 ---------- */
@@ -175,7 +174,7 @@ body {
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 20px 28px; /* ← 补上内边距 */ padding: 20px 28px;
opacity: 0; opacity: 0;
transition: opacity 0.3s ease; transition: opacity 0.3s ease;
} }
+45 -7
View File
@@ -17,8 +17,8 @@
} }
.top-left .nav-logo { .top-left .nav-logo {
width: 48px; width: 52px; /* 原 48px */
height: 48px; height: 52px; /* 原 48px */
flex-shrink: 0; flex-shrink: 0;
display: block; display: block;
object-fit: contain; object-fit: contain;
@@ -32,7 +32,7 @@
} }
.brand-info .logo-text { .brand-info .logo-text {
font-size: 22px; font-size: 20px;
font-weight: 600; font-weight: 600;
color: var(--text-primary); color: var(--text-primary);
line-height: 1.2; line-height: 1.2;
@@ -59,8 +59,9 @@
box-shadow: 0 0 12px rgba(99, 226, 183, 0.4); box-shadow: 0 0 12px rgba(99, 226, 183, 0.4);
} }
/* 状态文字 12px(原 13px */
.status-wrapper .status-text { .status-wrapper .status-text {
font-size: 13px; font-size: 12px;
color: var(--text-muted); color: var(--text-muted);
} }
@@ -71,7 +72,7 @@
} }
.user-name { .user-name {
font-size: 13px; font-size: 12px; /* 原 13px,与状态文字对齐 */
color: var(--text-secondary); color: var(--text-secondary);
} }
@@ -375,7 +376,7 @@
.proxy-addr { .proxy-addr {
font-size: 13px; font-size: 13px;
color: var(--text-dim); color: var(--text-dim);
font-family: 'JetBrains Mono', monospace; font-family: 'HarmonyOS Sans','JetBrains Mono', monospace;
} }
.proxy-tag { .proxy-tag {
@@ -395,7 +396,7 @@
} }
.remote-port { .remote-port {
font-family: 'JetBrains Mono', monospace; font-family: 'HarmonyOS Sans','JetBrains Mono', monospace;
font-size: 14px; font-size: 14px;
color: var(--text-secondary); color: var(--text-secondary);
} }
@@ -801,3 +802,40 @@ select:disabled {
height: 14px; height: 14px;
} }
} }
/* ---------- Tab 栏 ---------- */
.tab-bar {
display: flex;
gap: 32px;
padding: 14px 0 12px;
flex-shrink: 0;
border-bottom: 1px solid var(--border-subtle);
}
/* 将最后一个 Tab(用户配置)推到最右侧 */
.tab-item:last-child {
margin-left: auto;
/* 防止用户名过长导致溢出 */
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tab-item {
font-size: 14px;
color: var(--text-muted);
cursor: pointer;
padding: 4px 0;
transition: color 0.3s, border-color 0.3s;
border-bottom: 2px solid transparent;
}
.tab-item:hover {
color: var(--text-secondary);
}
.tab-item.active {
color: var(--primary-blue);
border-bottom-color: var(--primary-blue);
}
-93
View File
@@ -1,72 +1,3 @@
<<<<<<< HEAD
<<<<<<< HEAD
# frpc-console 更新日志
## 📌 版本说明
| 版本类型 | 标记 | 适用场景 |
|----------|------|----------|
| LTS 正式版 | `-lts` | 生产环境,长期维护 |
| 技术预览版 | `-preview` | 功能前瞻,建议测试环境验证 |
---
## 🚀 2.3-preview (2026-07-28)
> **技术预览版** —— 在 LTS 稳定核心(2.0)基础上,集成 2.1 与 2.2 的新特性,并完成基础设施层的全面加固。
### ✨ 新增特性
- **Ping 延迟检测** —— 顶部导航实时显示 frpc 到 frps 的延迟,状态图标 + ms 值,直观反映网络质量(2.1)
- **用户配置页独立** —— 账户管理与全局配置分离,用户信息与 frpc 配置各自独立管理(2.1)
- **声明式数据库迁移引擎** —— 基于 `db-history.go` 的 Schema 版本声明,对比新旧差异自动决定迁移路径(2.2)
### 🔧 改进与优化
- **401 统一拦截** —— API 请求返回 401 时自动清除认证状态并跳转登录页,避免页面卡死(2.1)
- **数据库路径统一** —— 数据库文件固定为 `./frpc-console.db`Docker 部署时挂载整个 `/app` 目录,所有运行时文件(db / toml / log / pid)完整持久化
- **`deploy.sh` 部署逻辑重构** —— 备份 → 拉代码 → 停容器 → 构建 → 启动,顺序闭环;移除宿主机编译,全部交由 Docker 多阶段构建处理
- **Dockerfile 多阶段构建** —— 自动处理 `go.mod` 降级兼容,安装 `sqlite` 辅助工具,便于部署脚本验证数据库状态
- **前端加载状态管理** —— 新增 `authLoading` 状态,首次访问时先完成用户检查再渲染页面,彻底解决刷新后登录/注册页状态错乱的竞态问题
- **`schema_version` 兜底写入** —— `InitDB()` 末尾强制补写 Schema 版本,确保每次启动都能识别已有数据,彻底解决升级后反复跳转注册页的问题
- **`docker-compose.yml` 配套工具** —— 简化开发调试流程,支持快速重建容器
### 🐛 修复
- 修复 `ExportTomlHandler` 模板渲染时缺少 `WireProtocolLine` 字段的问题
- 修复 `deploy.sh` 升级时用空文件覆盖旧数据库的问题
- 修复 Docker 镜像中 `sqlite3` 包名错误导致 `deploy.sh` 无法验证数据库的问题
- 修复首次访问刷新时登录/注册页显示异常的前端竞态问题
### 📦 部署变更
- 挂载方式:`-v ${DEPLOY_DIR}:/app`(整个 `/app` 目录)
- 数据库位置:`/opt/frpc-console/frpc-console.db`
- 备份目录:`/tmp/frpc-console/db-backups`
- 容器内工具:`sqlite` 已预装,便于调试
---
### 2.0-LTS 2026-07-27
=======
## 📝 更新日志
### 2.0-ReleaseLTS,跟随上游提供支持,frps 端现已正式发布,frpc 端测试中,敬请期待……)
>>>>>>> test
> 本次 LTS 版本聚焦于**稳定性兜底与协议能力对齐**,是 frp 0.70.0 LTS 的下游管理工具。
· 🚀 **frp v2 协议正式启用** —— `wireProtocol = "v2"` 配置项可用,灰标状态解除,实测稳定</br>
· 🔒 **数据库迁移引擎完整实现** —— 版本驱动的增量迁移 + 迁移前自动全量备份 + 失败可回滚,升级不再提心吊胆</br>
· 🧩 **配套工具 frps-console 同步发布** —— 同一套设计哲学,一个管理 frpc,一个管理 frps,版本号同步,LTS 同步
<<<<<<< HEAD
### 1.5-Preview (2026-07-25)non-LTS
=======
### 1.5-Release (2026-07-25)non-LTS
>>>>>>> test
=======
## 📌 版本说明 ## 📌 版本说明
| 版本类型 | 标记 | 适用场景 | | 版本类型 | 标记 | 适用场景 |
@@ -76,7 +7,6 @@
## 🚀 2.4-lts (2026-07-30) ## 🚀 2.4-lts (2026-07-30)
>>>>>>> test
> **紧急修复版 —— 架构升级与部署流程重构** > **紧急修复版 —— 架构升级与部署流程重构**
> >
@@ -90,15 +20,7 @@
- **PID 文件进程检测** —— frpc 状态检测从 `ps | grep` 改为基于 PID 文件,更加可靠 - **PID 文件进程检测** —— frpc 状态检测从 `ps | grep` 改为基于 PID 文件,更加可靠
- **旧版本自动迁移** —— 检测到根目录存在旧数据文件时,自动迁移至 `data/` 子目录,并保留备份 - **旧版本自动迁移** —— 检测到根目录存在旧数据文件时,自动迁移至 `data/` 子目录,并保留备份
<<<<<<< HEAD
<<<<<<< HEAD
### 1.0-Preview (2026-07-24)non-LTS
=======
### 1.0-Release (2026-07-24)non-LTS
>>>>>>> test
=======
### ✨ 功能完整 ### ✨ 功能完整
>>>>>>> test
- Ping 延迟检测(顶部导航实时显示) - Ping 延迟检测(顶部导航实时显示)
- 用户配置页独立(账户管理与全局配置分离) - 用户配置页独立(账户管理与全局配置分离)
@@ -106,20 +28,6 @@
- 声明式数据库迁移引擎(基于 `db-history.go` - 声明式数据库迁移引擎(基于 `db-history.go`
- frp v2 协议正式启用(`wireProtocol = "v2"` - frp v2 协议正式启用(`wireProtocol = "v2"`
<<<<<<< HEAD
· 🎉 **首次发布**</br>
· 📋 **隧道全生命周期管理** —— 增删改查 + 一键启用/禁用</br>
· 📦 **TOML 导入/导出** —— 无缝迁移现有 frpc 配置</br>
· 🔄 **配置热加载** —— 修改即生效,无需重启 frpc</br>
· 🔐 **首次启动 Web 注册** —— 无需命令行交互</br>
· 🖥️ **多平台支持** —— Windows / Linux / ARM 全平台兼容</br>
· 🐳 **容器化就绪** —— Docker 镜像,开箱即用</br>
<<<<<<< HEAD
· 🎨 **深色磨砂玻璃 UI** —— 现代化视觉体验</br>
=======
· 🎨 **深色磨砂玻璃 UI** —— 现代化视觉体验</br>
>>>>>>> test
=======
### 📦 部署变更 ### 📦 部署变更
| 变更项 | 旧方案 | 新方案 | | 变更项 | 旧方案 | 新方案 |
@@ -208,4 +116,3 @@
- 🖥️ 多平台支持(Windows / Linux / ARM 全平台) - 🖥️ 多平台支持(Windows / Linux / ARM 全平台)
- 🐳 容器化就绪(Docker 镜像,开箱即用) - 🐳 容器化就绪(Docker 镜像,开箱即用)
- 🎨 深色磨砂玻璃 UI - 🎨 深色磨砂玻璃 UI
>>>>>>> test
+1 -1
View File
@@ -3,4 +3,4 @@
; 示例: ; 示例:
; 2.4 # Preview 版本,无日期 ; 2.4 # Preview 版本,无日期
; 2.5 20260729 # LTS 版本,带发布日期 ; 2.5 20260729 # LTS 版本,带发布日期
2.4 2.5