Somrat Sorkar commited on
Commit
74e7ef3
·
1 Parent(s): c917d32

Fix: use gateway.controlUi.pairing = false

Browse files
Files changed (1) hide show
  1. start.sh +2 -3
start.sh CHANGED
@@ -157,9 +157,8 @@ 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 headless/Docker allow open connections
161
- # Note: This allows any client with the gateway token. Only use in trusted networks.
162
- CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".channels.control_ui = {\"dmPolicy\": \"open\", \"allowFrom\": [\"*\"]}")
163
 
164
  # Telegram (supports multiple user IDs, comma-separated)
165
  if [ -n "$TELEGRAM_BOT_TOKEN" ]; then
 
157
  CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.controlUi.allowedOrigins = [\"https://${SPACE_HOST}\"]")
158
  fi
159
 
160
+ # Disable pairing for Control UI connections (headless/Docker)
161
+ CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.controlUi.pairing = false")
 
162
 
163
  # Telegram (supports multiple user IDs, comma-separated)
164
  if [ -n "$TELEGRAM_BOT_TOKEN" ]; then