diff --git a/app/sovran_systemsos_web/static/onboarding.js b/app/sovran_systemsos_web/static/onboarding.js index d66ecd7..580a001 100644 --- a/app/sovran_systemsos_web/static/onboarding.js +++ b/app/sovran_systemsos_web/static/onboarding.js @@ -109,18 +109,22 @@ async function loadStep2() { if (!body) return; try { - // Fetch services + domains in parallel + // Fetch services, domains, and network info in parallel var results = await Promise.all([ apiFetch("/api/services"), apiFetch("/api/domains/status"), + apiFetch("/api/network"), ]); _servicesData = results[0]; _domainsData = results[1]; + var networkData = results[2]; } catch (err) { body.innerHTML = '
⚠ Could not load service data: ' + escHtml(err.message) + '
'; return; } + var externalIp = (networkData && networkData.external_ip) || "Unknown (could not retrieve)"; + // Build set of enabled service units var enabledUnits = new Set(); (_servicesData || []).forEach(function(svc) { @@ -140,11 +144,13 @@ async function loadStep2() { html += 'curl "https://njal.la/update/?h=sub.domain.com&k=abc123&auto"Enter each fully-qualified subdomain (e.g. matrix.yourdomain.com) and its Njal.la DDNS curl command.
Sovran_SystemsOS uses Njal.la for domains and Dynamic DNS. - First, create an account at Njal.la and purchase your domain. Then, create a Dynamic DNS record in the Njal.la web interface pointing to this machine's external IP address (shown below). + First, create an account at Njal.la and purchase your domain. + Then, in the Njal.la web interface, create a Dynamic record pointing to this machine's external IP address (shown below). Finally, paste the DDNS curl command from your Njal.la dashboard for each service below.
diff --git a/onboarding.html b/onboarding.html index 8b7a24a..e31edd3 100644 --- a/onboarding.html +++ b/onboarding.html @@ -72,7 +72,8 @@Sovran_SystemsOS uses Njal.la for domains and Dynamic DNS. - First, create an account at Njal.la and purchase your domain. Then, create a Dynamic DNS record in the Njal.la web interface pointing to this machine's external IP address (shown below). + First, create an account at Njal.la and purchase your domain. + Then, in the Njal.la web interface, create a Dynamic record pointing to this machine's external IP address (shown below). Finally, paste the DDNS curl command from your Njal.la dashboard for each service below.