deploy(M00-E): 补充API域名HTTPS检查
This commit is contained in:
@@ -14,6 +14,8 @@ SETUP_DIR="${SCRIPT_DIR}/scripts/setup"
|
||||
. "${SETUP_DIR}/repo-status.sh"
|
||||
# shellcheck source=scripts/setup/deploy-business.sh
|
||||
. "${SETUP_DIR}/deploy-business.sh"
|
||||
# shellcheck source=scripts/setup/domain-https.sh
|
||||
. "${SETUP_DIR}/domain-https.sh"
|
||||
# shellcheck source=scripts/setup/backup.sh
|
||||
. "${SETUP_DIR}/backup.sh"
|
||||
# shellcheck source=scripts/setup/restore.sh
|
||||
@@ -75,18 +77,7 @@ show_mqtt_status() {
|
||||
}
|
||||
|
||||
show_https_status() {
|
||||
qipai_info "domain: ${QIPAI_DOMAIN}"
|
||||
qipai_info "origin: ${QIPAI_API_ORIGIN}"
|
||||
qipai_info "app api: ${QIPAI_API_ORIGIN}/app-api"
|
||||
qipai_info "admin api: ${QIPAI_API_ORIGIN}/admin-api"
|
||||
if command -v nginx >/dev/null 2>&1; then
|
||||
nginx -t
|
||||
else
|
||||
qipai_warn "nginx not installed"
|
||||
fi
|
||||
if command -v openssl >/dev/null 2>&1; then
|
||||
qipai_info "TLS live check requires public DNS/network and is not forced in M00"
|
||||
fi
|
||||
qipai_domain_https_status
|
||||
}
|
||||
|
||||
main_menu() {
|
||||
@@ -125,9 +116,10 @@ if [ "${1:-}" = "--preflight" ]; then
|
||||
qipai_preflight
|
||||
elif [ "${1:-}" = "--status" ]; then
|
||||
show_status
|
||||
elif [ "${1:-}" = "--https" ]; then
|
||||
show_https_status
|
||||
elif [ "${1:-}" = "--diagnose" ]; then
|
||||
qipai_diagnose
|
||||
else
|
||||
main_menu "$@"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user