tao-shen commited on
Commit
970eeac
Β·
verified Β·
1 Parent(s): bcc6655

Upload scripts/entrypoint.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. scripts/entrypoint.sh +3 -9
scripts/entrypoint.sh CHANGED
@@ -26,8 +26,8 @@ export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--require /home/node/scripts
26
  # Enable Telegram API proxy (redirects fetch() to working mirror if needed)
27
  export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--require /home/node/scripts/telegram-proxy.cjs"
28
 
29
- # Token redirect removed β€” /admin route in a2a-proxy.cjs now handles token injection
30
- # The pixel office animation is served at / instead
31
 
32
  # ── Extensions symlink ──────────────────────────────────────────────────────
33
  SYMLINK_START=$(date +%s)
@@ -65,12 +65,6 @@ if [ -f /app/openclaw/.version ]; then
65
  echo "[entrypoint] OpenClaw version: $OPENCLAW_VERSION"
66
  fi
67
 
68
- # ── Start A2A proxy on port 7860 (OpenClaw moves to 7861) ─────────────────
69
- echo "[entrypoint] Starting A2A proxy on port 7860..."
70
- node /home/node/scripts/a2a-proxy.cjs &
71
- A2A_PROXY_PID=$!
72
- echo "[entrypoint] A2A proxy PID: $A2A_PROXY_PID"
73
-
74
- # ── Start OpenClaw via sync_hf.py ─────────────────────────────────────────
75
  echo "[entrypoint] Starting OpenClaw via sync_hf.py..."
76
  exec python3 -u /home/node/scripts/sync_hf.py
 
26
  # Enable Telegram API proxy (redirects fetch() to working mirror if needed)
27
  export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--require /home/node/scripts/telegram-proxy.cjs"
28
 
29
+ # Enable token redirect + A2A routing + state/agents endpoints (all in one preload)
30
+ export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--require /home/node/scripts/token-redirect.cjs"
31
 
32
  # ── Extensions symlink ──────────────────────────────────────────────────────
33
  SYMLINK_START=$(date +%s)
 
65
  echo "[entrypoint] OpenClaw version: $OPENCLAW_VERSION"
66
  fi
67
 
68
+ # ── Start OpenClaw via sync_hf.py (directly on port 7860, no proxy) ───────
 
 
 
 
 
 
69
  echo "[entrypoint] Starting OpenClaw via sync_hf.py..."
70
  exec python3 -u /home/node/scripts/sync_hf.py