From 262222303386abacc63c727f711ca4a461155200 Mon Sep 17 00:00:00 2001 From: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> Date: Thu, 30 Jul 2026 16:45:36 +0000 Subject: [PATCH] Unify Njal.la + router port-forwarding guidance across onboarding and feature enable modals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Single source of truth (static/js/domain-prereqs.js) for the domain prerequisite instructions so all three surfaces read identically: - Server + Desktop first-boot onboarding wizard (step 3) - Lightning Wallet Connections (NWC) enable modal (Node-only mode) - BTCPay Server (web) enable modal (Node-only mode) Both feature-enable flows share openDomainSetupModal(), which now drops its role-branched intro and 'Option A/B' blocks in favor of the shared renderers. All surfaces now consistently cover: 1. A domain from Njal.la (account, subdomain-vs-separate-domain, Dynamic record with host-part-only Name field, auto-filled IP, DDNS curl command) 2. Router access — forward ports 80 & 443 (TCP) to this computer's internal IP, once, for HTTPS/SSL (with CGNAT note) 3. How to get Njal.la working, step by step The reconfigure/troubleshooting modal gains the same router reminder, since 'domain not reachable' is often the port forwarding rather than DNS. domain-prereqs.js is loaded via asset_version cache busting and ships automatically (installPhase copies the package wholesale). Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com> --- .../static/js/domain-prereqs.js | 146 ++++++++++++++++++ .../static/js/features.js | 50 ++---- app/sovran_systemsos_web/static/onboarding.js | 40 ++--- app/sovran_systemsos_web/templates/index.html | 1 + .../templates/onboarding.html | 6 +- 5 files changed, 178 insertions(+), 65 deletions(-) create mode 100644 app/sovran_systemsos_web/static/js/domain-prereqs.js diff --git a/app/sovran_systemsos_web/static/js/domain-prereqs.js b/app/sovran_systemsos_web/static/js/domain-prereqs.js new file mode 100644 index 0000000..436d504 --- /dev/null +++ b/app/sovran_systemsos_web/static/js/domain-prereqs.js @@ -0,0 +1,146 @@ +/* Sovran_SystemsOS Hub — Shared domain-prerequisite instructions. + + SINGLE SOURCE OF TRUTH for the "you need a Njal.la domain + router port + forwarding" guidance that must read identically everywhere it appears: + + • First-boot onboarding wizard (Server + Desktop role) + — onboarding.js step 3 + • Feature-enable domain modal (Node role, and any role) + — features.js openDomainSetupModal() + (Lightning Wallet Connections / NWC, BTCPay Server, Haven, …) + • Domain reconfigure / troubleshooting modal + — features.js openDomainReconfigureModal() + + Keep these three surfaces word-for-word consistent: always edit this + file, never fork the wording inline. Plain classic script (no modules) — + both templates load it with a plain + diff --git a/app/sovran_systemsos_web/templates/onboarding.html b/app/sovran_systemsos_web/templates/onboarding.html index 2048436..e009ad7 100644 --- a/app/sovran_systemsos_web/templates/onboarding.html +++ b/app/sovran_systemsos_web/templates/onboarding.html @@ -125,9 +125,8 @@ 🌐

Domain Configuration

- Sovran_SystemsOS uses Njal.la for domains and Dynamic DNS. - Create an account at Njal.la, then for each service below, add a Dynamic record — no IP needed, it auto-populates once the DDNS curl command runs. - Paste the curl command from your Njal.la dashboard for each service. + Sovran_SystemsOS uses Njal.la for domains and Dynamic DNS, and your router needs ports 80 and 443 (TCP) forwarded to this computer. + Everything you need — Njal.la account, Dynamic records, and the one router task — is laid out step by step below.

@@ -170,6 +169,7 @@
+