根因:deploy_v3() 使用 sed '/^}/i\' 在多server块配置中重复注入V3 location块 导致nginx语法错误,switch_v3切换时nginx -t验证失败回滚 修复: - 新增 inject_v3_nginx_block() 精确定位最后一个顶层} - 新增 remove_v3_nginx_blocks() 清理错误注入 - 新增 validate_nginx() 显示实际错误信息 - switch_v3() 添加预检查和自动修复已损坏配置 - deploy_v3() 使用安全注入并报告nginx验证失败 Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/d77eb92f-55c9-4cb8-92db-2c4ce8754a8a Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| age-os | ||
| app | ||
| nginx | ||
| proxy | ||
| scripts | ||
| setup | ||
| architecture.md | ||
| brain-server-profile.json | ||
| cn-server-profile.json | ||
| ecosystem.config.js | ||
| feimao-server-profile.json | ||
| migration-markers.json | ||
| migration-plan.md | ||
| persona-brain-architecture.md | ||
| zhuyuan-server-profile.json | ||