code wiki / bin / nx_andelinwest_daemon.nx

nx_andelinwest_daemon.nx

buildroot/runtime/bin/nx_andelinwest_daemon.nx

5624 B131 linesdepth 14pulls 66 transitivereach 0 importersview sourcekind servicetopic andelinwest
docsdependenciesstructsconstsfunctions

about

nx_andelinwest_daemon.nx -- minimal sovereign HTTPS placeholder for andelinwest.com. Pure Nishi, silicon-up: native-compiled, no libc, substrate TLS 1.3 + Ed25519. Serves ONE self-labeled placeholder page over the PROVEN nx_tls13_server_session_run_ed25519 path. Operator 2026-05-27 (full autonomy): "get andelinwest up as top priority even if its a placeholder from zero up." Why dedicated (not the mv multi-vhost daemon): the mv app-layer (nx_wiki_route_dispatch) returns a silent-negative on the NAS and emits no body; this minimal daemon reuses ONLY the proven handshake + app_send primitives (the ed25519 test daemon path that returns a real HTTP body to curl). Multi-vhost wiki dispatch is debugged separately; tonight andelinwest.com must SERVE. M6 anti-pretend-stub: the page SELF-LABELS as a placeholder and names the exact compliance blockers (state-bar advertising review / ADA / privacy) per NISHI_SITES_INVENTORY.md ยง2. Cert paths match the NAS deploy layout (persistent user volume).

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_csprng.nx nx_http_server.nx nx_tls13_server_session.nx nx_tls13_server_session_run.nx nx_tls13_server_session_app_data.n nx_andelinwest_daemon.nx

imports: nx_syscalls.nxnx_csprng.nxnx_http_server.nxnx_tls13_server_session.nxnx_tls13_server_session_run.nxnx_tls13_server_session_app_data.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_http_server_addr_any nx_http_server_make_sockad nx_http_server_listen sys_ignore_sigpipe sys_mmap ↻ sys_socket sys_mmap ↻ sys_setsockopt sys_bind sys_close ↻ sys_listen sys_write sys_close ↻ aw_strlen aw_copy nx_http_server_accept_one sys_accept nx_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd ↻ sys_read ↻ sys_close ↻ nx_tls13_server_session_ru nx_tls13_server_session_ne sys_mmap ↻ x25519_keypair_public sys_mmap ↻ x25519_base_point x25519 nx_scratch_save nx_scratch_init

structs

none

consts

29const NX_AW_PORT: i64 = 8453 // CARVED OUT of the shared :8443 monolith: own process behind the SNI router (= SR_AW_PORT), liability-walled
30const NX_AW_BUDGET: i64 = 1000000
32const NX_AW_CERT_PATH: *u8 = "/volume1/homes/elderwesto/nishihost/certs/multi_san_cert.der" as *u8
33const NX_AW_PRIV_PATH: *u8 = "/volume1/homes/elderwesto/nishihost/certs/multi_san_priv.bin" as *u8
41const NX_AW_HDR: *u8 = "HTTP/1.0 200 OK\r\nContent-Type: text/html; charset=utf-8\r\nConnection: close\r\nX-Served-By: nishi-substrate\r\n\r\n" as *u8
42const NX_AW_SITE_PATH: *u8 = "/volume1/homes/elderwesto/nishihost/andelinwest_site.html" as *u8

functions

44func aw_strlen(s: *u8) -> i64
called by 1: main
50func aw_copy(dst: *u8, src: *u8, n: i64) -> i64
called by 1: main
56func main() -> i64