Commit Graph

4 Commits

Author SHA1 Message Date
kingecg 6fd9f32f9c ```
feat(vscode): add Daemon debug configuration

Add a new debug configuration for Daemon mode in VS Code launch settings
to facilitate debugging with specific environment variables and flags.

fix(config): use filepath.Dir for config path resolution

Change from assigning raw config path to using filepath.Dir to get the
directory of the config file, ensuring proper directory handling.

refactor(filehandler): improve file access security and directory handling

Improve security checks by using Lstat instead of Mode check for symlinks,
enhance directory handling when URL ends with "/" to prevent path traversal
errors, and refine path resolution logic to properly handle root directory
cases.

fix(config): disable SSL and update example root path

Disable SSL for teststatic server configuration and update root path
from relative "./example" to "../example" for proper example directory access.
```

Co-authored-by: Copilot <copilot@github.com>
2026-07-11 08:50:00 +08:00
kingecg 84960de4a6 feat(server): 优化服务器配置和日志记录
- 修改 www.teststatic.com 的端口为 8000
- 新增 www.a.com 的配置文件
- 更新 www.teststatic.com 的服务器配置,使用数组形式
- 在 LocalCertManager 中添加日志记录
- 优化 ServerManager 中的匹配逻辑,增加日志输出
2025-06-24 07:46:57 +08:00
kingecg eb64db6b30 feat(ssl): 实现自定义证书管理器并更新服务器配置
- 新增 LocalCertManager 结构体,实现自定义证书管理逻辑
- 更新服务器配置,支持自动 SSL 和 HTTP/2
- 修改证书缓存目录和服务器启动日志
- 更新测试静态网站配置,启用 SSL 并修改端口
- 调整 http-jump 配置,指向新的测试静态网站地址
2025-06-24 07:12:11 +08:00
kingecg 1b0db0e14b refactor(config): 重构配置处理逻辑
- 移除 config.json 中的 admin 配置,改为单独的配置文件
- 新增 Strings 类型处理服务器名称,支持字符串和字符串数组
- 优化服务器匹配逻辑,支持多域名配置
- 重构代码结构,提高可维护性和可扩展性
2025-06-23 23:12:03 +08:00