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 += '
' + 'Before you continue:' + '
    ' - + '
  1. Purchase your subdomains on https://njal.la
  2. ' - + '
  3. For each subdomain, add a Dynamic record in your Njal.la dashboard
  4. ' + + '
  5. Create an account at https://njal.la
  6. ' + + '
  7. Purchase your domain on Njal.la
  8. ' + + '
  9. In the Njal.la web interface, create a Dynamic record pointing to this machine\'s external IP address:
    ' + + '' + escHtml(externalIp) + '
  10. ' + '
  11. Njal.la will give you a curl command like:
    ' + 'curl "https://njal.la/update/?h=sub.domain.com&k=abc123&auto"
  12. ' - + '
  13. Enter the subdomain and paste that curl command below
  14. ' + + '
  15. Enter the subdomain and paste that curl command below for each service
  16. ' + '
' + '
'; html += '

Enter each fully-qualified subdomain (e.g. matrix.yourdomain.com) and its Njal.la DDNS curl command.

'; diff --git a/app/sovran_systemsos_web/templates/onboarding.html b/app/sovran_systemsos_web/templates/onboarding.html index 8b7a24a..e31edd3 100644 --- a/app/sovran_systemsos_web/templates/onboarding.html +++ b/app/sovran_systemsos_web/templates/onboarding.html @@ -72,7 +72,8 @@

Domain Configuration

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 @@

Domain Configuration

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.