Commit Graph

4 Commits

Author SHA1 Message Date
hiderfong 3ae151404b fix: optimize compliance scan performance and improve error handling
- Refactor scan_compliance to eliminate N+1 queries using joinedload and batch loading
- Add try-except wrapper in compliance scan API endpoint
- Improve frontend axios error interceptor to display detail/message/timeout errors
- Update CORS config and nginx for domain deployment
2026-04-25 20:49:38 +08:00
hiderfong 6d35cfa5b7 chore: nginx配置支持域名访问 datapointer.cnroc.cn
更新server_name为 datapointer.cnroc.cn localhost _,
使Nginx能够正确响应该域名的请求。
2026-04-25 11:13:36 +08:00
hiderfong 9590603621 fix: nginx添加CORS头解决前端白屏问题
前端构建产物中的script/link标签带有crossorigin属性,
浏览器加载这些资源时会进行CORS检查。
补充Access-Control-Allow-Origin响应头以支持跨域资源加载。
2026-04-25 11:04:27 +08:00
hiderfong e7c7f92b69 chore: 补充生产部署配置
- requirements.txt 添加 requests 依赖
- 新增 docker-compose.prod.yml 生产编排文件
- 新增 frontend/Dockerfile.prod 前端生产镜像
- 新增 frontend/nginx.conf 反向代理配置
2026-04-25 10:45:25 +08:00