Spaces:
Running
Running
Somrat Sorkar commited on
Commit ·
74e7ef3
1
Parent(s): c917d32
Fix: use gateway.controlUi.pairing = false
Browse files
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
|
| 161 |
-
|
| 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
|