Startup box: mark satellite-served domains, link only local auth hosts

A satellite's domain lines get a 🛰 marker, and the header URLs skip
remote domains' auth hosts (those live on the upstream) so a
satellite-only instance points at its own local admin page.
This commit is contained in:
LeoVasanko committed 2026-10-01 06:50:56 +00:00
1 parent 444eca651e
commit f2b82f04a9
1 file changed
+7 -1
+7 -1
View File
@@ -125,7 +125,11 @@ def print_startup_config(
header_urls = [f"{w}{vite_url}{r} (vite dev)"]
else:
header_urls = [
f"{w}{url}{r}" for d in domains if (url := auth_host_url(d.config))
f"{w}{url}{r}"
for d in domains
# A satellite-served domain's auth host lives on the upstream —
# the header links this instance's own account pages.
if d.config.remote is None and (url := auth_host_url(d.config))
]
if not header_urls:
guess = min(
@@ -164,6 +168,8 @@ def print_startup_config(
rp_name = domain.rp_name
suffix = f" ({rp_name})" if rp_name and rp_name != domain.rp_id else ""
head = f"{w}{domain.rp_id}{r}{suffix}"
if domain.remote is not None:
head += " 🛰" # satellite-served via an uplink
if not domain.config.origins:
rows.append(f"{head} — no sign-in sites")
continue