Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.
TypeScript browser-shellcontrol-planefile-managerhomelabmobile-firstnextjsptyreactself-hostedserver-managementshadcn-uisysadmintailwindcssterminaltypescriptvpsweb-desktopweb-terminal
docs: plain http to an IP cannot complete a login — say so where it matters
rahmanef63c4222061b9b8
diff --git a/README.md b/README.mdindex 43e99fad..85cc6fe5 100644--- a/README.md+++ b/README.md@@ -101,10 +101,19 @@ curl -fsSL https://raw.githubusercontent.com/rahmanef63/mso/main/scripts/installRun it as your normal server user, **not root**. The installer prints the first-login password once and explains how to approve your first browser device.+It binds **`127.0.0.1` by default**, so nothing is published to your network. Reach it with an SSH tunnel and open `http://localhost:4005`:++```bash+ssh -N -L 4005:127.0.0.1:4005 you@your-server+```++That tunnel is not just hygiene. The session cookie is `Secure`, and browsers only keep a `Secure` cookie over plain http on `localhost` — so an `http://<ip>:4005` URL logs in successfully and then drops the cookie. For a permanent setup use `tailscale serve 4005` or a TLS reverse proxy pointed at `127.0.0.1:4005`; pass `--bind 0.0.0.0` only when a proxy you control is already in front.+Useful options:```bashcurl -fsSL https://raw.githubusercontent.com/rahmanef63/mso/main/scripts/install.sh | bash -s -- --port 4005+curl -fsSL https://raw.githubusercontent.com/rahmanef63/mso/main/scripts/install.sh | bash -s -- --bind 0.0.0.0curl -fsSL https://raw.githubusercontent.com/rahmanef63/mso/main/scripts/install.sh | bash -s -- --no-servicecurl -fsSL https://raw.githubusercontent.com/rahmanef63/mso/main/scripts/install.sh | bash -s -- --uninstall```diff --git a/app/install/page.tsx b/app/install/page.tsxindex d82cb22a..20d25ae5 100644--- a/app/install/page.tsx+++ b/app/install/page.tsx@@ -31,9 +31,10 @@ const STEPS = [},{n: 2,- title: "Put it behind something",- body: "MSO listens on :4005. An authenticated session can read allowed files and run commands as the process user, so treat the port like SSH: do not expose it raw to the internet. Tailscale or a VPN is the easy answer; a TLS reverse proxy with an allowlist also works.",- code: "sudo ufw deny 4005",+ title: "Reach it",+ body: "The installer binds 127.0.0.1, so :4005 is closed to every other machine and there is nothing to firewall. Tunnel in from whatever you browse on. The tunnel is not only for privacy: the session cookie is Secure, and a browser only keeps a Secure cookie over plain http on localhost — so an http://<ip>:4005 URL returns a successful login and then silently drops the cookie.",+ code: "ssh -N -L 4005:127.0.0.1:4005 you@your-server",+ note: "Then open http://localhost:4005. For something permanent use `tailscale serve 4005`, or a TLS reverse proxy on the server pointed at 127.0.0.1:4005 — both give the browser a trustworthy origin. Only pass --bind 0.0.0.0 if a proxy you control is already in front.",},{n: 3,diff --git a/docs/INSTALL.md b/docs/INSTALL.mdindex ddaf3e27..e35d4414 100644--- a/docs/INSTALL.md+++ b/docs/INSTALL.md@@ -110,8 +110,8 @@ User=youruserWorkingDirectory=/home/youruser/msoEnvironmentFile=/home/youruser/mso/.env.localEnvironment=PORT=4005-Environment=HOSTNAME=0.0.0.0-ExecStart=/usr/bin/npm run start -- --hostname 0.0.0.0 --port 4005+Environment=HOSTNAME=127.0.0.1+ExecStart=/usr/bin/npm run start -- --hostname 127.0.0.1 --port 4005Restart=alwaysRestartSec=5MemoryMax=3G@@ -156,8 +156,16 @@ fine for normal use, but interactive PTY sessions get cut mid-keystroke.## 5. Put TLS in front (pick ONE)**Tailscale (recommended for a personal box):** don't expose anything.-`tailscale up`, then reach `http://<machine>:4005` over the tailnet, or-`tailscale serve 4005` for HTTPS. Firewall :4005 from the public net.+`tailscale up`, then `tailscale serve 4005`, and browse the+`https://<machine>.<tailnet>.ts.net` URL it prints.++`tailscale serve` is required, not a nicer alternative: reaching+`http://<machine>:4005` directly over the tailnet **cannot log in**. The session+cookie is `Secure` (`lib/auth/session-cookie.ts`), and a browser only keeps a+`Secure` cookie over plain http on `localhost` / `127.0.0.1` / `::1`. A+`100.64.0.0/10` address or a MagicDNS name is neither, so the login returns 200+and the cookie is dropped — an endless login loop with the right password. The+same is true of every `http://<ip>:4005` URL.**Caddy (public domain):**@@ -171,7 +179,10 @@ os.example.com {TLS (certbot). Keep `proxy_set_header Host $host;` and forward`X-Forwarded-For` (the login rate limiter keys on client IP).-Either way: firewall :4005 (and :4002) so only the proxy / tailnet reaches them.+Either way the app should stay on `127.0.0.1:4005` (the installer's default), so+the proxy is the only thing that can reach it and there is no public port to+firewall in the first place. If you deliberately bind wider with+`--bind 0.0.0.0`, firewall :4005 as well.## 6. Optional — the Browser app (Camoufox)