token
ace59e5b36
feat: Enhance JSON serialization and DTO usage across services
...
- Introduced AppJsonContext for optimized JSON serialization with source generation.
- Updated ResultFilter to handle EmptyHttpResult and EmptyResult correctly.
- Refactored ClusterRequestFailoverMiddleware and ProxyErrorResponseMiddleware to use DTOs for error responses.
- Modified ConfigurationService to utilize the new JSON context for configuration loading and saving.
- Enhanced FileStorageService to return structured DTOs instead of anonymous objects.
- Updated QpsService to return structured QPS data using DTOs.
- Refactored RateLimitService to return structured error responses using DTOs.
- Implemented SqlRunner for lightweight ADO.NET operations, replacing Dapper for compatibility with Native AOT.
- Refactored Statistics services to utilize SqlRunner for database operations, ensuring type safety and explicit parameter binding.
- Updated SystemService to return structured system information using DTOs.
- Enhanced StreamForwardService to return structured data for port forwarding lists.
2026-07-22 14:30:22 +08:00
token
d49dca2935
fix(docker): 构建前端并复制到 wwwroot,修复镜像缺少前端
...
此前 docker-image.yml 只把前端构建到 web/dist,Dockerfile 从未将其
复制到 wwwroot,导致发布镜像的 wwwroot 为空、无法提供前端页面。
- Dockerfile 新增 web 构建阶段(--platform=$BUILDPLATFORM,前端为架构无关
静态文件,多架构构建时只构建一次,避免 QEMU 模拟),并在 publish 前将
产物复制到 src/FastGateway/wwwroot
- docker-image.yml 移除冗余的前端构建步骤(改由 Dockerfile 内部完成,
镜像构建自包含,本地 docker build 亦可用)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-07-03 14:27:07 +08:00
token
0b84add399
fix(ci): release 工作流使用 Node 20 修复 web 构建失败
...
Tailwind CSS v4 使用原生 @tailwindcss/oxide 绑定并要求 Node 20+,
Node 18(npm 9)会触发 npm 可选依赖 bug(npm/cli#4828 ),导致
"Cannot find native binding"。与 docker-image.yml 保持一致改用 Node 20。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-07-03 12:41:01 +08:00
token
65ddd31cc1
feat(cert): 支持上传自定义证书、泛域名 DNS-01 及修复 HTTPS 重定向
...
证书管理:
- 新增上传自定义证书接口 (POST /api/v1/cert/upload),支持 PFX/P12 与 PEM 格式,
统一转换为固定密码 pfx 落盘,校验私钥并读取有效期/颁发机构
- 新增 CertType 区分 Let's Encrypt 与用户上传证书,上传证书不参与自动续期
- 泛域名支持: SNI 按 *.example.com 匹配一级子域名,泛域名安全文件名处理,
网关缓存按泛域名失效
- 泛域名申请: 新增 DNS-01 两步验证接口 (dns/prepare、dns/validate),
生成 _acme-challenge TXT 记录供手动添加后签发;泛域名排除出 HTTP-01 自动续期
- 前端: 新增上传证书 / 重新上传 / DNS 验证对话框及入口
修复:
- HTTPS 重定向未生效: Server.RedirectHttps 此前从未被消费,现在网关在 ACME
校验之后加入重定向中间件,将 80 端口明文请求 307 跳转到 HTTPS
文档与 CI:
- README(中/英) 补充证书管理说明与多平台下载
- release 工作流新增 linux/win/osx 的 x64 与 arm64 构建
- docker 镜像改为 linux/amd64,linux/arm64 多架构并修正触发分支
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-07-03 11:52:02 +08:00
token
0fb523311b
fix: 移除 npm 缓存配置,因为项目没有 package-lock.json
2025-11-15 01:56:44 +08:00
token
9d245ad893
feat: 更新Dockerfile和CI配置,优化Node.js环境和构建流程
2025-11-15 01:49:10 +08:00
token
ce6043505b
更新脚本
2025-11-10 17:36:48 +08:00
token
3b758589d6
feat(release): update logging level and enhance release notes for TunnelClient
2025-08-25 03:10:24 +08:00
token
ae0211b65c
ci: 移除ARM64平台支持并简化构建步骤
2025-08-25 02:53:02 +08:00
token
a9b72e257b
ci: 移除Docker构建中的ARM64平台支持
2025-08-25 00:05:10 +08:00
token
94b861cbb5
ci(workflow): 禁用ARM64构建的AOT编译以解决兼容性问题
...
修改发布工作流,在ARM64构建中显式禁用AOT编译,同时调整项目文件使AOT编译成为可选配置而非强制开启。这些更改解决了在ARM64架构下AOT编译导致的兼容性问题。
2025-08-23 03:05:26 +08:00
token
03f8f9e23f
ci: 更新Dockerfile路径为src/FastGateway/Dockerfile
2025-08-23 03:03:14 +08:00
token
256b358f31
ci(workflow): 为ARM64平台添加标准构建步骤
...
为linux-arm64平台添加单独的构建步骤,使用标准构建而非AOT编译,以解决ARM64架构的兼容性问题
2025-08-23 03:02:20 +08:00
token
40ee9ff771
ci(workflow): 移除TunnelClient构建中的修剪参数
...
简化AOT构建流程,移除不必要的PublishTrimmed和TrimMode参数以提高构建速度
2025-08-23 02:59:10 +08:00
token
9c51623644
feat: 添加CustomWebSocketStream类并更新相关配置
...
- 新增CustomWebSocketStream类用于处理WebSocket流操作
- 移除appsettings.json中的数据库连接配置
- 更新CI构建脚本简化命令格式
- 添加Windows安装脚本和测试产物文件
2025-08-23 02:53:18 +08:00
token
e6d219400a
ci: 更新 .NET 版本至 10.0
...
更新 GitHub Actions 工作流和 Core 项目的 .NET 版本从 8.0/9.0 升级到 10.0
2025-08-23 02:48:05 +08:00
token
5f7787efd6
feat: 重构项目结构并添加新功能
...
- 重构项目目录结构,将核心逻辑移至Core项目
- 添加隧道客户端功能及相关配置
- 实现黑白名单、限流策略等新功能
- 更新前端UI组件库至shadcn/ui
- 优化前端主题切换功能
- 添加设置管理接口
- 实现文件存储和目录浏览功能
- 完善证书管理功能
- 添加服务监控仪表盘
- 实现服务启停和配置管理
2025-08-22 18:39:26 +08:00
token
cb4e4b0f98
重构Docker构建流程,添加多架构支持,更新依赖项并移除不必要的日志记录功能。新增配置服务以替代EntityFrameworkCore,简化数据管理。
2025-08-12 16:12:43 +08:00
token
efb0a9660f
Update docker-image.yml
2024-11-25 23:37:39 +08:00
token
1b7cd6a8d6
Update docker-image.yml
2024-11-13 19:09:31 +08:00
token
8a8eaab019
Update docker-image.yml
2024-11-13 19:03:01 +08:00
token
fa1e54bcb0
Create docker-image.yml
2024-11-13 18:59:15 +08:00