wrolpi/controller
Roland 6bea09600e
Hotspot captive portal: welcome page with the WROLPi's address
Devices that join the hotspot probe a fixed plain-HTTP URL to check for
Internet access.  NetworkManager's shared-mode dnsmasq now resolves those
probe hostnames (and `wrolpi`) to the hotspot address via an include the
Controller writes when the hotspot starts, the probes land on the Controller
(port 80), and are redirected to /portal: "This is your WROLPi, its address is
10.42.0.1, open WROLPi / open the Controller".

Only the probe hostnames are hijacked so the hotspot keeps forwarding
everything else when the WROLPi has an uplink.  The include is corrected and
the connection re-activated once if NetworkManager picked a non-default
subnet.  Writing the include is best-effort; the hotspot starts regardless.

`hotspot.captive_portal` (controller.yaml, default true) toggles the probe
redirects and the include; like the other hotspot settings it applies on the
next hotspot start, so saving while the hotspot is up reports
restart_required and both Controller UIs say so.  The status endpoint gains
the hotspot address and portal URL, shown in both UIs.  repair.sh only
creates the include directory so a disabled setting survives upgrades.
Native only: Docker has no hotspot.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 19:09:12 -06:00
..
api Hotspot captive portal: welcome page with the WROLPi's address 2026-09-13 19:09:12 -06:00
lib Hotspot captive portal: welcome page with the WROLPi's address 2026-09-13 19:09:12 -06:00
templates Hotspot captive portal: welcome page with the WROLPi's address 2026-09-13 19:09:12 -06:00
test Hotspot captive portal: welcome page with the WROLPi's address 2026-09-13 19:09:12 -06:00
__init__.py Creating Controller service which will control WROLPi services, admin, SMART, disks, and status. nginx will fallback to Controller UI when React UI is unavailable (such as during upgrades). 2025-12-15 15:48:40 -07:00
conftest.py Hotspot captive portal: welcome page with the WROLPi's address 2026-09-13 19:09:12 -06:00
defaults.py Hotspot captive portal: welcome page with the WROLPi's address 2026-09-13 19:09:12 -06:00
main.py Hotspot captive portal: welcome page with the WROLPi's address 2026-09-13 19:09:12 -06:00
requirements.txt build(deps): update pydantic requirement from >=2.13.4 to >=2.13.5 in /controller (#691) 2026-09-03 16:43:12 -06:00
serve.py Migrating Controller from port 8087 to 80 so that it is more discoverable. Reformatting Controller dashboard to make header at the top. Reformatting navigation bar to handle the new links which prevented Admin from being visible in some screens. 2026-04-09 15:01:05 -06:00