Add BIM Viewer to Synology deploy canon
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user