Skip to content

Add nginx LAN vhosts and micronet DNS names - #40

Merged
keskad merged 4 commits into
mainfrom
feat/nginx-lan-vhosts
Aug 24, 2026
Merged

Add nginx LAN vhosts and micronet DNS names#40
keskad merged 4 commits into
mainfrom
feat/nginx-lan-vhosts

Conversation

@keskad

@keskad keskad commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • NGINX on :80 (microinit service): bigfred/admin/grafana (+ .lan) reverse-proxy to localhost ports; wizard/wizard.lan 301 to http://bigfred.local:8091 so wizard OAuth keep using the existing allowlist.
  • Overlay micronet.json seeds static unicast names (short + .lan) pointing at 192.168.0.1. Needs micronet#5 on main (or pin MICRONET_REF) before a hub rebuild serves those names.
  • Grafana root_url / domain set to grafana.lan. Direct ports and mDNS are unchanged.

Test plan

  • scripts/check-os.sh
  • Image build includes /usr/sbin/nginx, no leftover S50nginx
  • After boot in gateway mode: http://bigfred.lan/ → BigFred UI, http://admin.lan/ → OS UI, http://grafana.lan/ → Grafana
  • http://wizard.lan/ and http://wizard/ 301 to http://bigfred.local:8091...
  • WebSocket on bigfred.lan still works (/ws)
  • Hitting http://192.168.0.1/ (default vhost) still reaches BigFred :8080
  • Existing /data/etc/micronet.json is not overwritten; add the dns block by hand on already-flashed hubs

Made with Cursor

keskad and others added 4 commits August 24, 2026 09:56
Phones can open http://bigfred.lan/ instead of remembering ports. Wizard stays on bigfred.local:8091 via 301 so existing OAuth allowlists keep working.

Co-authored-by: Cursor <cursoragent@cursor.com>
One image overlay file is enough for the :80 hosts. micronet records use addr (IPv4 or CNAME) instead of ip.

Co-authored-by: Cursor <cursoragent@cursor.com>
When a router already owns gateway.ip, the hub sits on .252 (or a DHCP lease). Hardcoded A records would point at the router; CNAME follows the live mDNS address.

Co-authored-by: Cursor <cursoragent@cursor.com>
Seed earlyBoot.captureLogs in the microinit overlay and document persistence,
the seed-once migration caveat, and fatal-boot write behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
@keskad
keskad merged commit 3fdd214 into main Aug 24, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant