feat(deploy): 新增外部访问诊断脚本 check-access.sh
"服务已启动但外部访问不了"时一次性定位原因,只读诊断、不改配置: - 读出 .env 的 HOST/PORT,并对 127.0.0.1 这种只监听回环的配置直接报错 - 检查实际监听地址(ss/netstat),区分通配与仅回环 - 回环 + 对外 IP 两次 /health 自测(用 ip route get 取真实出口 IP) - 检查 80/443 上有没有反向代理,并说明本项目不部署反代 - 检查 firewalld / ufw / iptables 对端口的放行情况,给出修复命令 - 结尾按"直连后端"与"经反代"两条路径给出结论 同时更新 README.txt、deploy/proxy/README.md(新增第八节:还没有反代时 如何直连后端)与打包校验清单。
This commit is contained in:
@@ -112,6 +112,7 @@ for required in \
|
||||
"opendance-web-v${VERSION}/admin/index.html" \
|
||||
"opendance-web-v${VERSION}/deploy/install.sh" \
|
||||
"opendance-web-v${VERSION}/deploy/ctl.sh" \
|
||||
"opendance-web-v${VERSION}/deploy/check-access.sh" \
|
||||
"opendance-web-v${VERSION}/deploy/proxy/README.md" \
|
||||
"opendance-web-v${VERSION}/deploy/proxy/nginx.conf.example" \
|
||||
"opendance-web-v${VERSION}/deploy/proxy/web.config.example" \
|
||||
|
||||
Reference in New Issue
Block a user