# NEXXVU Portal 0.3.0-alpha.429

## Changes
- New: **one command connects a new Portal to the update centers** (R95.6, Pace CRM install 2026-11-26) - Settings › Updates and the setup screen show `sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py connect --center https://update1.nexxvu.com` instead of a long command with placeholders and three more commands. It asks for the Portal name and the invitation code (hidden), takes the address from the HTTPS front, enrolls and switches on reporting, its schedule and updates (PORTAL_CONNECTED).
  Where: Settings › Updates (/updates), on a Portal that is not enrolled yet; first setup (/setup)
  Test: on a new, not enrolled Portal: Settings › Updates shows one command and no <name> placeholders; run it with an invitation code and expect PORTAL_CONNECTED, then updates appear.
- New: **the same next steps everywhere after an install** (R95.6) - the activation output, the first-boot console and setup-link now name the HTTPS front step first (PORTAL-FRONT.sh) while it is missing, then the setup link, then connect. setup-link without a front says what to run first.
  Where: the Portal server's console (install output, sudo nexxvu-portal setup-link); Installation guide (https://www.nexxvu.com/install/#setup-short)
  Test: on a new image before PORTAL-FRONT.sh: sudo nexxvu-portal setup-link prints the PORTAL-FRONT.sh command under the link.
- New: **a NEXXVU page instead of Caddy's "Congratulations" page** (R95.6, new images) - until the HTTPS front is enabled, http://<server>/ says the Portal is installed and shows the one command left. PORTAL-FRONT.sh replaces it.
  Where: http://<new Portal address>/ (images built from 2026-11-27)
  Test: boot a new image, open http://<its address>/: the NEXXVU page with the PORTAL-FRONT.sh command.
- New: **DNS check before the HTTPS front** (R95.6) - PORTAL-FRONT.sh --enable --tls acme first checks that the server resolves names and that the Portal name is in DNS, and says what to fix (dns-not-working-on-this-server, hostname-not-in-dns-<name>, front-certificate-not-issued-yet) instead of front-health-http-000. The first-boot console warns when the server cannot resolve names.
  Where: the Portal server's console (PORTAL-FRONT.sh); FAQ https://www.nexxvu.com/help/#install-dns-letsencrypt
  Test: on a test VM with a DNS server that does not answer: PORTAL-FRONT.sh --enable ... --tls acme stops with dns-not-working-on-this-server and a "what to do" line, changing nothing.

## Technical
- runtime_lifecycle.py (and the installer copy runtime-lifecycle.py): action `connect` (enroll + enable_service reporting, reporting --schedule, updates, one verify_services); front_endpoint() reads /etc/caddy/nexxvu-portal-front.json; setup_code_hint() replaces SETUP_CODE_HINT (front step only while the front record is missing).
- cli.py: setup-link without a front prints the PORTAL-FRONT.sh command (still exactly one link line).
- enrollment_status.ENROLL_COMMAND = the connect command; updates.html panel is one step; getting_started wording.
- PORTAL-FRONT.sh: dns_preflight (getent) before anything is written, --skip-dns-check, die() with a "what to do" line, front-certificate-not-issued-yet.
- images/rootfs/nexxvu-firstboot: placeholder Caddyfile + page on :80 (only while the Caddyfile is not PORTAL-FRONT's), DNS note on the console, step 2 is setup-link.
- Tests: test_install_simple_r95_6.py; test_getting_started, test_setup_link, release_plane test_central_linux_landing updated.
- No migration: MIGRATION_FROM 137_backup_checks.

## Signing
TEST-KEY CANDIDATE - NOT FOR PRODUCTION. Isolated NXV-031 rehearsal build of b9a7fc3ff1afd382ce1825eb3bbdb1fdbcf18f66, signed with an ephemeral TEST key; every real installation refuses it.
