Commit Graph

10 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
8631d9213c fix(maintainerr): inject ingress base path into UI files for React Router
The upstream Maintainerr builds its Vite/React frontend with a
__PATH_PREFIX__ placeholder that gets replaced at runtime by start.sh
using the BASE_PATH env var. This sets:
- React Router's basename (createBrowserRouter)
- API base URL (axios calls)
- EventSource URLs
- Vite asset prefix

Without this replacement, React Router has an empty basename and can't
match the ingress URL (/api/hassio_ingress/<token>/), returning
"No route matches URL".

Fix: Replace __PATH_PREFIX__ in the built UI files with the HA ingress
entry before starting the app. Remove nginx sub_filters (no longer
needed since the UI files already reference the correct ingress-prefixed
URLs). Keep the nginx rewrite rule to strip the prefix on the server side.

Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/e0751563-06a4-4b4e-a4a7-63b2e5f66f03

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-04-03 14:02:46 +00:00
Alexandre
dc51a74be1 Update 32-nginx_ingress.sh 2026-04-02 17:35:34 +02:00
github-actions
d9b62defba GitHub bot: sanitize (spaces + LF endings) & chmod [nobuild] 2026-04-02 12:16:20 +00:00
Alexandre
2a5f2cfb73 Update backend server port in upstream configuration 2026-04-02 12:56:31 +02:00
Alexandre
35e88361d3 Update maintainerr/rootfs/etc/nginx/includes/upstream.conf
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-02 12:55:42 +02:00
copilot-swe-agent[bot]
f70b17b384 Address code review: explicit nginx config path, unused var, consistent capitalization
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/14f6643d-9d4f-4c6d-8993-0dbe4404c35d

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-04-02 09:29:34 +00:00
copilot-swe-agent[bot]
703e5a4172 Add ingress support with nginx reverse proxy for maintainerr addon
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/14f6643d-9d4f-4c6d-8993-0dbe4404c35d

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-04-02 09:28:29 +00:00
Alexandre
97f6bd8382 revert 2026-03-06 10:51:28 +01:00
github-actions
06a1751a07 GitHub bot: sanitize (spaces + LF endings) & chmod 2026-03-06 09:43:03 +00:00
Alexandre
82418264a8 Add 99-run.sh to cont-init.d directory 2026-03-06 10:40:18 +01:00