Commit Graph

18 Commits

Author SHA1 Message Date
Yudong Sun
056f372f18 fix(birdnet-pipy): simplify ingress to single <base href> rewrite
Upstream 0.6.3 consolidates deployment-path handling into a single
<base href> declaration in index.html with Vite base: './' and
relative paths for all internal URLs. The previous seven sub_filter
rules (href/src/'/api'/'/socket.io') are no longer needed — one
<base href> replacement is sufficient.

Also removes the incidental brittleness from byte-level sub_filter
matches in minified JS bundles (the '/stream/' rule inadvertently
double-prefixed the literal 'api.get("/stream/config")' string).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 22:32:51 -04:00
Yudong Sun
312906997a fix(birdnet-pipy): fix icecast crash and Live Feed broken in ingress
Two fixes for the birdnet-pipy addon:

1. Icecast log permission error: 01-structure.sh creates /app/data/logs
   as root, but start-icecast.sh runs via gosu icecast2. The first log
   write fails with "Permission denied", crashing icecast in a restart
   loop (502 Bad Gateway on the Live Feed page). Fix: chown the log dir
   and file to icecast2 before dropping privileges.

2. Live Feed double-prefixed request in ingress mode: the "/stream/"
   sub_filter rule also matches 'api.get("/stream/config")' in the JS
   bundle, producing a request like
   /hassio_ingress/TOKEN/api/hassio_ingress/TOKEN/stream/config (404).
   The upstream frontend (BirdNET-PiPy >= 0.6.2) now strips the leading
   slash from stream URLs so they resolve via <base href> — the
   sub_filter rule is no longer needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-10 22:46:51 -04:00
copilot-swe-agent[bot]
5ece7c238b fix: broaden socket.io sub_filter pattern to match trailing slash variant
Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-02-26 10:52:48 +00:00
copilot-swe-agent[bot]
e0f9c91e43 feat: enable ingress support for birdnet-pipy addon
Add ingress: true, ingress_port: 0, and ingress_stream: true to
config.yaml. Update ingress_params.conf with sub_filter rules for
Vue.js SPA: rewrite API paths, stream paths, Socket.IO paths, and
inject base href for Vue Router history mode.

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-02-26 10:51:29 +00:00
Alexandre
27a64fd80b birdnet-pipy: disable nginx service when ingress is unavailable 2026-02-15 08:33:14 +01:00
Alexandre
ca9240cf01 Merge branch 'master' into codex/build-front-end-with-/birdnet/-base-path 2026-01-31 12:49:00 +01:00
Alexandre
0db919e772 Change sub_filter_types to allow all types 2026-01-31 12:06:33 +01:00
Alexandre
f2d1fc777d Adjust BirdNET PiPy frontend base path 2026-01-31 12:04:53 +01:00
Alexandre
760ea3cf26 Update ingress_params.conf 2026-01-30 09:05:11 +01:00
Alexandre
53aeada3fd Update ingress_params.conf 2026-01-30 09:05:04 +01:00
Alexandre
6238f314f4 Update ingress_params.conf 2026-01-30 09:04:57 +01:00
Alexandre
9b9502552e Add absolute_redirect off to nginx config 2026-01-30 09:04:51 +01:00
Alexandre
ed6e54a66a Add rewrite rule for ingress entry in NGINX config 2026-01-30 09:04:26 +01:00
Alexandre
80b0e840bb Update ingress_params.conf 2026-01-29 17:26:47 +01:00
Alexandre
29d5d796a2 Create ingress_params.conf 2026-01-29 17:25:45 +01:00
Alexandre
5e1622584e Update server_params.conf 2026-01-29 17:25:15 +01:00
Alexandre
8a4c7d5d2a Update server_params.conf 2026-01-29 15:28:49 +01:00
Alexandre
24461af201 Add BirdNET-PiPy add-on 2026-01-28 15:06:11 +01:00