Add BIM Viewer to Synology deploy canon

This commit is contained in:
Codex
2026-06-22 13:54:00 +03:00
parent 3526351b1b
commit 6258de83e3
8 changed files with 131 additions and 8 deletions
+14
View File
@@ -71,6 +71,20 @@ echo "== ai workspace assistant Ops entitlement adapter check =="
"${DOCKER_BIN}" exec nodedc-platform-ai-workspace-assistant-1 sh -lc \
'test "$AI_WORKSPACE_OPS_ENTITLEMENT_URL" = "http://172.22.0.222:18190/api/internal/v1/ai-workspace/entitlements" && test -n "$AI_WORKSPACE_OPS_ENTITLEMENT_TOKEN" && echo ai-workspace-ops-entitlement-env-ok'
echo "== BIM viewer auth/session check =="
bim_session="$(fetch_with_retry http://127.0.0.1:18100/api/auth/session)"
printf '%s' "$bim_session" | grep -aE '"authRequired":true|"loginUrl"'
echo "== BIM viewer public redirect check =="
bim_public_status="$(
curl -k -sS -o /dev/null -w '%{http_code}' https://bim.nodedc.tech/
)"
if [[ "$bim_public_status" != "302" ]]; then
echo "public BIM root did not redirect to Launcher auth: status=${bim_public_status}"
exit 1
fi
echo "bim-public-auth-redirect-ok"
echo "== auth flow check =="
auth_flow="$(fetch_with_retry https://id.nodedc.ru/if/flow/default-authentication-flow/)"
printf '%s' "$auth_flow" \