Lab 3 Terminal UI

This commit is contained in:
2026-04-13 12:10:19 -06:00
parent 9f3af49845
commit 7e4d35b6a3
8 changed files with 479 additions and 3 deletions
+17
View File
@@ -18,6 +18,23 @@ npm run dev
3. Open `http://localhost:3000`.
## Lab 3 Web Terminal
Set `NEXT_PUBLIC_LAB3_TERMINAL_PATH` to the WeTTY endpoint used by your deployment. The default expected path is `/wetty`, and `.env.example` includes that value. Local environments can also provide a full URL such as `http://127.0.0.1:7681/wetty`.
The Lab 3 widget assumes:
- WeTTY runs on the lab host and is bound to `127.0.0.1`
- the public proxy forwards `/wetty` to the local WeTTY port
- WebSocket upgrade happens at the reverse proxy
- WeTTY is launched as root so it can present `/bin/login` locally instead of SSH
Example service command:
```bash
wetty --host 127.0.0.1 --port 3001 --base /wetty --allow-iframe
```
## Project Structure
```text