feat(skills): basic_auth_setup helper for nginx + htpasswd demo gate #129
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills!129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_mik_basic_auth"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes deploy-side of home#182 (basic mode). Codifies §12.1 of DEPLOYMENT_NU_HERO_OS.md so the manual
apt install nginx-light apache2-utils+htpasswd+ sites-available block becomes onebasic_auth_setupcall.Module
New:
tools/modules/installers/auth.nuRe-exported from:
tools/modules/installers/mod.nuBehaviour
Generates the same nginx config §12.1 documents:
$listen_addr:$listen_portauth_basicgate everywhere except^/hero_*/rpc(/|$)(programmatic JSON-RPC bypasses auth so already-authenticated WASM islands and iframes can call back without re-auth)proxy_passtohttp://$upstream_addr:$upstream_port(where hero_router is bound whenHERO_ROUTER_ADDRESS/HERO_ROUTER_UI_PORTare set inenv.sh— see service_router env wiring on PR #127)client_max_body_size 100M, WebSocket upgrade map, sane proxy timeoutsTries
systemctl reload nginxfirst; falls back topkill -HUP nginxornohup nginxfor TF Grid VMs (no systemd).Quick path with auth
Validation
Parses under
nu -c "use tools/modules/installers *". Runtime test requires nginx + a host where 9988 is bindable.Tracker
home#185.
Signed-off-by: mik-tf
Squash-merged to
developmentas011dd83. Branch deleted.Pull request closed