HumaneFutureLab's picture
download
raw
940 Bytes
@echo off
:: SHARE_HER - opens a protected public ngrok tunnel to a running Cosmos.
:: Safe by design: start_ngrok.py REFUSES to expose her unless the server's
:: public-access gate is active, and the public URL requires the private
:: access token it prints. Free-plan limits: 1GB/mo, 20k requests/mo.
:: Requires: Cosmos already awake (WAKE_HER) on 8081.
setlocal
cd /d "%~dp0"
set "HERE=%~dp0"
if "%HERE:~-1%"=="\" set "HERE=%HERE:~0,-1%"
set "PATH=%HERE%\00_WAKE\ngrok-agent;%PATH%"
set "PY=%HERE%\00_WAKE\python\python.exe"
if not exist "%PY%" set "PY=python"
:: Recover the ngrok authtoken from the surviving F: config (no new secret copies).
for /f "tokens=2" %%A in ('findstr /c:"authtoken:" "F:\Cosmos\tmp_runtime\ngrok\cosmos-ngrok.yml"') do set "NGROK_AUTH_TOKEN=%%A"
echo [..] opening protected public tunnel to Cosmos (8081)...
cd /d "%HERE%\02_HER_BODY\Cosmos_code"
"%PY%" scripts\start_ngrok.py --port 8081
endlocal
pause

Xet Storage Details

Size:
940 Bytes
·
Xet hash:
b23d980eec10c596409d8d25b15308bd3aebb0d10f8877f1bee5109dda1b6b34

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.