From 689516796416ea3301651c490286c99c5c9629f8 Mon Sep 17 00:00:00 2001 From: Ricardo Mancinas Date: Wed, 12 Aug 2026 11:41:31 -0700 Subject: [PATCH] fix(setup): print the hub's public URL, not the host the reader typed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The setup pages build commands that get pasted into a terminal on a *different* machine, but they built them from location.origin. Open the console by LAN IP or over a tunnel and the enrolment one-liner told the target machine to curl an address it may not resolve at all. /docs and /enroll/:token are now served through a template that stamps in config.baseUrl — PUBLIC_URL where set, the proxied request host otherwise — with location.origin left as a fallback for the unsubstituted file. The remaining 127.0.0.1 references are the loopback VNC port on the machine being registered, which is meant to be literal. Co-Authored-By: Claude Opus 5 --- public/docs.html | 6 +++++- public/enroll.html | 8 ++++++-- server/index.js | 20 ++++++++++++++++++-- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/public/docs.html b/public/docs.html index 14fd124..8e00b00 100644 --- a/public/docs.html +++ b/public/docs.html @@ -293,7 +293,11 @@