@echo off REM ============================================================ REM NB GoShop demo -> Tailscale Funnel (public HTTPS) on S3D REM Serves THIS folder statically (no Node/Python needed). REM Double-click to run. Writes diag-log.txt (synced to Dropbox). REM ============================================================ setlocal cd /d "%~dp0" set "DIR=%~dp0" if "%DIR:~-1%"=="\" set "DIR=%DIR:~0,-1%" set "TS=tailscale" where tailscale >nul 2>&1 || set "TS=C:\Program Files\Tailscale\tailscale.exe" echo === funnel attempt %date% %time% === > diag-log.txt "%TS%" version >> diag-log.txt 2>&1 echo Clearing any previous Funnel/Serve config... "%TS%" serve reset >> diag-log.txt 2>&1 "%TS%" funnel reset >> diag-log.txt 2>&1 echo Publishing the public\ site folder via Tailscale Funnel: echo %DIR%\public echo. "%TS%" funnel --bg "%DIR%\public" > funnel-out.txt 2>&1 type funnel-out.txt type funnel-out.txt >> diag-log.txt echo. echo ---- current serve/funnel status ---- "%TS%" serve status echo ---- status (also logged) ---- >> diag-log.txt "%TS%" serve status >> diag-log.txt 2>&1 echo. echo If a https://...ts.net URL is shown above, the demo is LIVE. echo (Funnel runs in the background; you can close this window.) echo To take it down later, run: tailscale funnel reset endlocal pause