Add nginx LAN vhosts and micronet DNS names - #40
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
:80(microinit service):bigfred/admin/grafana(+.lan) reverse-proxy to localhost ports;wizard/wizard.lan301 tohttp://bigfred.local:8091so wizard OAuth keep using the existing allowlist.micronet.jsonseeds static unicast names (short +.lan) pointing at192.168.0.1. Needs micronet#5 onmain(or pinMICRONET_REF) before a hub rebuild serves those names.root_url/domainset tografana.lan. Direct ports and mDNS are unchanged.Test plan
scripts/check-os.sh/usr/sbin/nginx, no leftoverS50nginxhttp://bigfred.lan/→ BigFred UI,http://admin.lan/→ OS UI,http://grafana.lan/→ Grafanahttp://wizard.lan/andhttp://wizard/301 tohttp://bigfred.local:8091...bigfred.lanstill works (/ws)http://192.168.0.1/(default vhost) still reaches BigFred:8080/data/etc/micronet.jsonis not overwritten; add thednsblock by hand on already-flashed hubsMade with Cursor