Somrat Sorkar commited on
Commit
cb6b4ef
·
1 Parent(s): 322722c

Use --no-pairing CLI flag instead of config

Browse files
Files changed (1) hide show
  1. start.sh +2 -4
start.sh CHANGED
@@ -157,9 +157,6 @@ if [ -n "$SPACE_HOST" ]; then
157
  CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.controlUi.allowedOrigins = [\"https://${SPACE_HOST}\"]")
158
  fi
159
 
160
- # Disable pairing for Docker/headless environments (security warning: only use in trusted networks)
161
- CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.security.pairing = false")
162
-
163
  # Telegram (supports multiple user IDs, comma-separated)
164
  if [ -n "$TELEGRAM_BOT_TOKEN" ]; then
165
  CONFIG_JSON=$(echo "$CONFIG_JSON" | jq '.plugins.entries.telegram = {"enabled": true}')
@@ -244,7 +241,8 @@ echo "🚀 Launching OpenClaw gateway on port 7860..."
244
  echo ""
245
  # Set model via environment for the gateway
246
  export LLM_MODEL="$LLM_MODEL"
247
- openclaw gateway run --port 7860 --bind lan --verbose 2>&1 | tee -a /home/node/.openclaw/gateway.log &
 
248
  GATEWAY_PID=$!
249
 
250
  # Wait a moment for startup errors
 
157
  CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.controlUi.allowedOrigins = [\"https://${SPACE_HOST}\"]")
158
  fi
159
 
 
 
 
160
  # Telegram (supports multiple user IDs, comma-separated)
161
  if [ -n "$TELEGRAM_BOT_TOKEN" ]; then
162
  CONFIG_JSON=$(echo "$CONFIG_JSON" | jq '.plugins.entries.telegram = {"enabled": true}')
 
241
  echo ""
242
  # Set model via environment for the gateway
243
  export LLM_MODEL="$LLM_MODEL"
244
+ # Disable pairing for Docker/headless environments via CLI flag
245
+ openclaw gateway run --port 7860 --bind lan --verbose --no-pairing 2>&1 | tee -a /home/node/.openclaw/gateway.log &
246
  GATEWAY_PID=$!
247
 
248
  # Wait a moment for startup errors