Commit Graph

6 Commits

Author SHA1 Message Date
Yudong Sun
cae9984aaa birdnet-pipy: wait for upstream API before starting nginx
Replaces the 0.6.6-3 sleep+ingress-file-loop in services.d/nginx/run
with bashio::net.wait_for on 127.0.0.1:5002 (core.api). Under
s6-overlay all services.d/* services start concurrently, so nginx
could accept requests before the API had bound its port — proxy paths
(/api/, /socket.io/, /internal/auth) would 502, and that 502 could be
cached by an upstream service worker / edge cache (e.g. Cloudflare-
fronted HA), leaving the UI blank.

Matches the sister-addon pattern (bazarr, jellyfin, radarr). Also
switches to `exec nginx` for proper s6 supervision of the nginx PID.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 23:50:20 -04:00
Alexandre
a84eb3c883 Update run 2026-04-23 14:42:58 +02:00
Alexandre
f24a815f4f Simplify nginx run script by removing checks
Removed conditional check for nginx disabled state.
2026-02-15 18:22:55 +01:00
Alexandre
27a64fd80b birdnet-pipy: disable nginx service when ingress is unavailable 2026-02-15 08:33:14 +01:00
Alexandre
8372be9c20 Update run 2026-01-29 17:14:07 +01:00
Alexandre
dca06b9a9d Add configurable data location 2026-01-28 19:41:00 +01:00