Files
meshcore-bot/modules
agessaman 8fdcbe916f feat(web_viewer): serve the viewer behind Home Assistant ingress
New [Web_Viewer] ha_ingress flag. When it's on, requests from the Supervisor (172.30.32.2) carrying X-Ingress-Path get SCRIPT_NAME set from that header, count as authenticated (Home Assistant already logged the user in), and Socket.IO accepts the public Home Assistant origin. Templates use url_for, and browser code goes through window.appUrl and the existing fetch wrapper, so every link, redirect, API call and socket honors the prefix. With the flag off, nothing changes.

A regression test fails on new root-relative URL literals that bypass those helpers.
2026-11-09 19:26:13 -08:00
..