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
+13
View File
@@ -373,3 +373,16 @@ func TestRegionsCannotBeChangedWithoutAKeeper(t *testing.T) {
t.Fatal("regions changed on a node that has no keeper")
}
}
type noRegions struct{}
func (noRegions) Regions() []string { return nil }
func (noRegions) SetRegions([]string) error { return nil }
func TestAStatusWithoutRegionsListsNone(t *testing.T) {
f := newFixture(t, token, func(c *Config) { c.Regions = nil; c.RegionKeeper = noRegions{} })
_, body := f.do(t, "GET", "/api/v1/status", "", false)
if !strings.Contains(string(body), `"regions":[]`) {
t.Fatalf("regions must be an empty list the UI can read, not null: %s", body)
}
}