Skip to content

Commit ec0678d

Browse files
committed
refactor: use OpenClaw's built-in Tailscale Serve option
1 parent ac9c65b commit ec0678d

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The setup wizard runs automatically after provisioning. Use these settings:
5757
| Gateway port | 18789 |
5858
| Gateway bind | Loopback (127.0.0.1) |
5959
| Gateway auth | Password |
60-
| Tailscale exposure | Off (No Tailscale exposure) |
60+
| Tailscale exposure | Serve |
6161
| Enter Telegram bot token | Your bot token from @BotFather |
6262
| Select a channel | Telegram (Bot API) |
6363
| Select a channel | Finished |

setup.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,6 @@ if [[ $SSH_EXIT_CODE -eq 0 ]]; then
145145
echo "Starting OpenClaw setup wizard via Tailscale (${TAILSCALE_IP})..."
146146
echo ""
147147
ssh -t "root@${TAILSCALE_IP}" "cd /opt/openclaw && ./docker-setup.sh"
148-
149-
# configure tailscale serve for HTTPS access
150-
echo ""
151-
log_step "Configuring Tailscale Serve (HTTPS)"
152-
TAILSCALE_HOSTNAME=$(ssh "root@${TAILSCALE_IP}" "tailscale status --json | jq -r '.Self.DNSName' | sed 's/\.$//'")
153-
ssh "root@${TAILSCALE_IP}" "tailscale serve --bg --https=443 http://localhost:18789" >/dev/null 2>&1
154-
155-
# configure allowed origins for dashboard access
156-
ssh "root@${TAILSCALE_IP}" "cd /opt/openclaw && docker compose run --rm openclaw-cli config set gateway.controlUi.allowedOrigins '[\"https://${TAILSCALE_HOSTNAME}\"]' && docker compose restart openclaw-gateway" >/dev/null 2>&1
157-
log_ok "Dashboard accessible at https://${TAILSCALE_HOSTNAME}"
158148
else
159149
log_fail "Setup failed (exit code ${SSH_EXIT_CODE})"
160150
fi

0 commit comments

Comments
 (0)