|
|
2734b04d8f
|
refactor: remove 16.8k lines of dead code across all internal packages
- Delete unused files: tempfile subsystem, matcher variants, server/internal
- Remove 200+ unused functions across proxy, ssl, lua, http2/3, stream, variable
- Fix proxy test type errors (backgroundRefresh ctx→Request)
- Move bench/tools mock backend into internal/testutil
- Remove corresponding test functions for all deleted code
|
2026-06-03 16:15:43 +08:00 |
|
|
|
07acfad146
|
feat(config): 添加 alias 配置支持
- StaticConfig 添加 Alias 字段,与 Root 互斥
- server.go 创建 handler 时设置 alias
- validate.go 添加 root/alias 互斥验证和路径安全检查
- converter.go nginx alias 指令正确转换为 Alias 字段
- defaults.go --generate-config 输出包含 alias 文档和示例
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-27 13:16:12 +08:00 |
|
|
|
78ca32748c
|
feat(converter): 支持 server 级别的 root 和 index 指令转换
- 在 convertServerBlock 中收集 server 级别的 root/index 指令
- 如果没有显式的 location / 静态配置,创建默认静态配置
- 如果 location / 是 proxy 类型,不创建静态配置
- 添加 3 个测试用例覆盖不同场景
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-27 11:38:47 +08:00 |
|
|
|
b290cea0f6
|
fix(converter): 修复 nginx 配置解析空字符串和 upstream URL
- 解析器正确处理空引号字符串 "",使用标记区分空字符串和特殊字符
- upstream server URL 自动添加 http:// 前缀以满足 lolly 配置验证
- proxy_set_header 正确处理空字符串值(如 Connection "")
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-27 11:27:32 +08:00 |
|
|
|
c18ce613b3
|
style: 格式化代码
- 使用 Go 1.13+ 八进制字面量格式 (0o644)
- 修复文件末尾缺少换行符
- 对齐结构体字段
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-27 10:20:18 +08:00 |
|
|
|
909bd405d2
|
feat(converter,app): 添加 nginx 配置导入功能
- 新增 internal/converter/nginx 解析器和转换器
- main.go 添加 --import/-i 参数支持 nginx 配置导入
- app_test.go 添加导入功能相关测试
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-24 17:12:49 +08:00 |
|