Choose even the first region in the browser; update Docker and Nix

A node now starts without any region (it only helps others connect, and
prints a hint). The owner's sign-in link leads straight to the Regions page
when none is followed, visitors get a notice instead of an empty search, and
status always lists regions as an array.

The Docker image no longer pins Bonn, the NixOS module no longer requires
regions, and the VM test now starts without any, chooses the first region
over the API and checks it survives a restart. README and the init hint
follow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
2026-11-18 10:41:10 +01:00
co-authored by Claude Sonnet 5.5
parent fd439710df
commit e3d0c12e55
18 changed files with 212 additions and 71 deletions
+2 -3
View File
@@ -6,6 +6,7 @@
// typed for those who know them. Saving changes what the node follows at once.
import { append, clear, h } from "./dom.ts";
import { statusLine } from "./format.ts";
import { lang, t } from "./i18n.ts";
import { Unauthorized, getToken, setRegions } from "./ownerApi.ts";
import { biggestPlaceByCell, cellsNear, loadPlaces, searchPlaces, type Match, type Place } from "./places.ts";
@@ -239,9 +240,7 @@ export function showRegions(message = ""): void {
const now = await setRegions(regions);
if (state.node) state.node.regions = now;
const statusEl = document.getElementById("status");
if (statusEl && state.node) {
statusEl.textContent = t("status.line", { listings: state.node.listings, peers: state.node.peers, regions: now.join(", ") });
}
if (statusEl && state.node) statusEl.textContent = statusLine(state.node);
showRegions(t("reg.saved")); // the page again, showing what is followed now
},
});