9 Commits

Author SHA1 Message Date
d944c11afb 新增域名统计功能,包括模型、服务和路由的实现,优化管理后台以支持域名访问统计的获取。 2025-06-19 19:59:58 +08:00
c050955157 新增数据预加载功能,优化配置缓存逻辑,支持健康检查接口,调整兰空图床获取器的重试机制(指数退避),提升系统性能和稳定性。 2025-06-15 06:12:46 +08:00
bcc333b142 重构路由设置逻辑,统一配置所有路由,新增公开首页配置处理方法,更新前端API调用路径以匹配新路由结构。 2025-06-14 20:17:41 +08:00
5176cc85db 重构Handlers结构,新增HandlePublicEndpoints方法以处理公开端点信息请求,优化URL统计缓存逻辑,更新Router以支持新路由,简化认证信息管理,移除不再使用的刷新令牌逻辑。 2025-06-14 20:00:01 +08:00
797a941172 重构静态文件处理逻辑,新增tryFiles方法以实现类似Nginx的try_files功能,优化路径处理和调试日志;移除不再使用的resolveFilePath方法,简化ServeStatic逻辑。 2025-06-14 19:11:24 +08:00
2394ef7f15 更新静态文件处理逻辑,新增resolveFilePath方法以处理Next.js静态导出的路由问题;在路由处理器中规范化路径以解决尾斜杠问题;禁用尾斜杠以避免路由冲突;在管理端点页面中添加编辑功能,支持更新端点信息。 2025-06-14 19:03:58 +08:00
f2456e116b 删除不再使用的配置文件和脚本,更新Dockerfile以支持前后端构建,重构配置加载逻辑,添加OAuth2.0支持,优化API处理和路由设置。 2025-06-14 17:40:31 +08:00
1fc1069ec1 refactor(docker, config): streamline directory structure and enhance configuration management
- Removed unnecessary volume mounts for public and logs in docker-compose.yml.
- Updated Dockerfile to create necessary directories under /root/data.
- Modified start.sh to copy files to the new public directory location.
- Enhanced config.go to create default configuration and directory structure if not present.
- Adjusted router.go to serve static files from the new public directory path.
2024-11-30 23:34:45 +08:00
e70ca4cf52 feat(docker, config, api): update docker-compose for logging, enhance app structure, and add system metrics display
- Updated docker-compose.yml to mount logs directory.
- Changed BASE_URL environment variable to point to the new API endpoint.
- Refactored main.go to implement a structured App type, improving initialization and graceful shutdown.
- Enhanced config management with JSON loading and environment variable support.
- Added monitoring capabilities in api_handler for logging request metrics.
- Introduced new metrics display in index.html with corresponding CSS styles for better visualization.
2024-11-30 23:23:58 +08:00