What Frank decided (28–29 Nov 2026)
2. What Frank decided (28–29 Nov 2026)
Section titled “2. What Frank decided (28–29 Nov 2026)”- The server stays the 2 GB Lightsail instance in Malaysia (ap-southeast-5, Debian 13). Upgrade to 4 GB before production only if the measurements in Part I say so.
- Two Bideward hostnames now, a third later; one hub behind one tunnel (Frank, 29 Nov 2026, replacing the earlier one-hostname decision): app.bideward.com (the dashboard and its own calls, same origin, no cross-site calls), api.bideward.com (bots, loaders and the feed; later the versioned /v1 API) and, after the migration, admin.bideward.com (owner pages behind Cloudflare Access). Single-level names only: Cloudflare’s free certificate does not cover a name like api.app.bideward.com. The hub answers each route only on the hostname it belongs to (E.5). Reasons: each product and each kind of caller gets its own firewall, rate-limit and Access rules, and a product can be renamed or moved by adding a hostname without re-pasting loaders.
- Bideward is a standalone product (Frank, 29 Nov 2026): its own domain bideward.com, its own GitHub organisation, its own hostnames, API, data, server and sign-in, with no affiliation to any other brand in its public pages. It is owned by Frank; the legal entity will be registered in the right jurisdiction after legal advice, once the product has been proven in his own use. A shared sign-in across products is parked (Part P). The decision record is ADR-0001.
- Per-user control password (random, shown once, stored hashed, locks after 5 wrong tries): designed now in C.3.10, built straight after the migration.
- Secrets page (write-only, a Generate button, rotation with an overlap window, and a reveal that needs the control password): designed now in C.3.11, built after the migration. During the migration secrets live only in root-only files (F.3).
- Backups go to your Google Drive: Apps Script now, size-tested in Part J with rclone as the fallback, plus a monthly offline copy.
- If the tunnel is down people see our own “back shortly” page (a free, stateless Worker on the dashboard hostname, D.11) and bots receive a clear failure they retry.
- Docs as code: this guide is a multi-page set in the repository, one document per purpose, edited there; a private docs site with a sidebar and search is built from the same files. Git: Claude writes the code and you merge, as before; you do every git action from now on, in the
bidewardGitHub organisation (setup guide). - Cloudflare Tunnel is the connection method. Reasons: the server opens no inbound port at all, its address never matters or leaks, there is no list of Cloudflare address ranges to keep current, no certificate for the hidden host, and it is free. The cost: cloudflared is one more program that must stay running (systemd restarts it; an outside uptime check tells us if it dies).
- The research service stays private (127.0.0.1 only). The earlier idea of research.YOURDOMAIN, Caddy and Let’s Encrypt is cancelled.
- PostgreSQL for everything. No SQLite. User accounts, roles, permissions and every other database function live in PostgreSQL.
- A thin Node adapter runs the same Worker code, so there is one codebase and the existing tests can run against both. This migration reproduces today’s behaviour first. New features come after, in the order of Part C.8.
- No paid Cloudflare plan and no bridge: run 1 to 3 bots until the move is finished.
- Security first, but it must not slow anything: section 4 lists the speed rules that go with each security rule.
← Previous: Overview: why we are moving and what the finished system looks like · Guide index · Next: Security design and speed design →