This commit is contained in:
vet
2026-04-20 10:26:40 +07:00
parent f41930113d
commit d26596addf
5 changed files with 19 additions and 20 deletions

View File

@@ -262,7 +262,7 @@ pc_print_vite_backend_env() {
info " VITE_ADMIN_URL=${VITE_ADMIN_URL:-${PC_VITE_ADMIN_URL:-<empty>}}"
if [[ "$PC_BACKEND_ORIGIN" == http://* ]] && [[ "$PC_BACKEND_ORIGIN" != http://127.0.0.1* ]] && [[ "$PC_BACKEND_ORIGIN" != http://localhost* ]]; then
warn " PC_BACKEND_ORIGIN 仍是 HTTP 公网入口OpenIM WASM DB worker 可能继续 initDB 超时。建议改为 https://${VITE_BASE_DOMAIN}"
info " PC 使用 HTTP 公网入口: ${PC_BACKEND_ORIGIN}"
fi
}
@@ -283,7 +283,7 @@ pc_check_nginx_gateway() {
success " Nginx 网关可达: ${o}/nginx-health"
else
warn " Nginx 网关不可达: ${o}/nginx-health"
warn " PC WebSocket 默认连 ${VITE_WS_URL:-ws://<host>/msg_gateway};请确认已执行 sudo ./deploy-test/00-init-tools.sh nginx并放行 TCP 80/443"
warn " PC WebSocket 默认连 ${VITE_WS_URL:-ws://<host>/msg_gateway};请确认已执行 sudo ./deploy-test/00-init-tools.sh nginx并放行 TCP 80"
fi
pc_probe_msg_gateway "$o"