code wiki / _hdl_build / nx_hub_provision.nx

nx_hub_provision.nx

buildroot/runtime/_hdl_build/nx_hub_provision.nx

2839 B55 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind tooltopic hub
docsdependenciesstructsconstsfunctions

about

nx_hub_provision.nx -- provision a PERSONAL HUB as a FULL STANDALONE DOMAIN SITE (operator: "they are full bradrwest.com site not on nishifamily" -- each person gets their OWN domain, docroot + sites.conf host->docroot mapping + their own per-domain SNI cert; NOT a path under nishifamily.com). Mirrors the proven nx_site_provision provisioning (same sites.conf `<host>\t<docroot>` line + manifest) but renders the HUB template (blog/organizer/ hub) instead of the .site marketing template. ONE call: .hub config -> docroot index.html + sites.conf line + manifest. The live cut-over (per-domain TLS cert via the ACME issuer + DNS + NAS push) is the deploy step. Composes nx_hub_template (ht_emit_hub). license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_hub_template.nx nx_hub_provision.nx nx_hub_provision_gate.nx

imports: nx_hub_template.nx

imported by: nx_hub_provision_gate.nx

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main hp_provision sys_read_file sys_openat_rd sys_lseek sys_mmap sys_read sys_close ht_emit_hub ht_put ht_emit_first sys_mmap ↻ ht_eol ht_line_field ht_tageq ht_slen ht_esc ht_put ↻ ht_render_posts sys_mmap ↻ ht_eol ↻ ht_line_field ↻ ht_tageq ↻ ht_put ↻ ht_esc ↻ ht_render_videos sys_mmap ↻ ht_eol ↻ ht_line_field ↻ ht_tageq ↻ ht_put ↻ ht_esc ↻ ht_render_events sys_mmap ↻ ht_eol ↻ ht_line_field ↻ ht_tageq ↻ ht_put ↻ ht_esc ↻ ht_render_friends

structs

none

consts

9const K_MAGIC_1048576: i64 = 1048576

functions

14func hp_provision(domain: *u8, hub_path: *u8, outhtml: *u8, conf_path: *u8, manifest_path: *u8) -> i64
47func main(argc: i64, argv: *i64) -> i64