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

Disable pairing for Docker/headless deployments

Browse files
Files changed (1) hide show
  1. start.sh +3 -0
start.sh CHANGED
@@ -157,6 +157,9 @@ if [ -n "$SPACE_HOST" ]; then
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}')
 
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}')