Remove Cloudflare tunnel; shorten generated admin password to 8 chars.

The tunnel setup is being handled externally. Removed all cloudflared
install/watchdog scripts and config from LAUNCH.bat and usb\. LAUNCH.bat
now shows LAN IP directly. Admin password generator changed from 20-char
hex to 8-char hex for easier first login.
This commit is contained in:
AetherForge
2026-06-01 15:32:02 -07:00
parent 3605d540da
commit fdfa414a9a
16 changed files with 25 additions and 1284 deletions

View File

@@ -170,35 +170,19 @@ if not exist "%ROOT%\data\blueprints" mkdir "%ROOT%\data\blueprints"
if not exist "%ROOT%\data\preps" mkdir "%ROOT%\data\preps"
:: ----------------------------------------------------------------
:: 5. Cloudflare Tunnel - start in background window + 60s watchdog
:: 5. Detect LAN IP for display
:: ----------------------------------------------------------------
set "SERVER_PORT=8989"
set "CF_HOSTNAME=aether.thetempleofdoom.com"
set "CF_READY=0"
if not exist "%ROOT%\cloudflare\start-tunnel.ps1" (
echo [CF] WARNING: cloudflare\start-tunnel.ps1 missing - tunnel skipped.
goto cf_done
for /f "tokens=2 delims=:" %%I in ('ipconfig ^| findstr /i "IPv4" ^| findstr /v "127.0.0.1"') do (
set "LAN_IP=%%I"
goto lan_done
)
echo.
echo [CF] Starting Cloudflare tunnel for https://%CF_HOSTNAME% ...
echo [CF] Log: %ROOT%\data\logs\tunnel.log
start "AetherForge Tunnel" powershell -NoProfile -ExecutionPolicy Bypass -File "%ROOT%\cloudflare\start-tunnel.ps1" -Root "%ROOT%"
:: Give the tunnel script 8 seconds to start before we open the server
ping -n 9 127.0.0.1 >nul
set "CF_READY=1"
:cf_done
:: ----------------------------------------------------------------
:: 6. Detect LAN IP for display
:: ----------------------------------------------------------------
set "LAN_IP=localhost"
:lan_done
set "LAN_IP=%LAN_IP: =%"
:: ----------------------------------------------------------------
:: 7. Kill any stale server process
:: 6. Kill any stale server process
:: ----------------------------------------------------------------
taskkill /F /IM AetherForge.exe >nul 2>nul
ping -n 2 127.0.0.1 >nul
@@ -207,15 +191,11 @@ echo.
echo ================================================================
echo STARTING CONTROL DECK
echo ================================================================
echo Local: http://localhost:%SERVER_PORT%
echo LAN: http://%LAN_IP%:%SERVER_PORT%
if "!CF_READY!"=="1" (
echo Public: https://!CF_HOSTNAME!
echo Dropper PS: iex -irm https://!CF_HOSTNAME!/install.ps1
)
echo Data: %ROOT%\data\
echo Local: http://localhost:%SERVER_PORT%
echo LAN: http://%LAN_IP%:%SERVER_PORT%
echo Data: %ROOT%\data\
echo.
echo Dashboard login printed below each start.
echo Login credentials printed below.
echo Press Ctrl+C to stop.
echo ================================================================
echo.
@@ -235,8 +215,6 @@ if "!EC!"=="0" (
echo If port %SERVER_PORT% is in use, close other AetherForge windows and retry.
)
:: Cloudflare tunnel runs as a Windows service — stays up after LAUNCH.bat exits
echo.
pause
endlocal