5 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
3f991edcd7 fix(birdnet-pipy): wait for API (port 5002) before starting nginx to prevent 502 on ingress
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/4e3f8d6e-aa60-49f1-9091-ec6eee21af29

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-04-23 12:28:56 +00:00
Alexandre
6b0341b4b2 Merge pull request #2668 from alexbelgium/copilot/fix-starting-custom-scripts
bazarr: fix startup crash due to missing leading slash in base_url
2026-04-22 10:31:46 +02:00
Alexandre
ca049de86e Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-04-22 10:31:37 +02:00
copilot-swe-agent[bot]
2df2b816dc Fix Bazarr crash: add leading slash to base_url for Flask blueprint registration
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/a216cbc7-6136-4c7c-abbd-7028912b409d

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-04-22 06:44:59 +00:00
Alexandre
7c36d91199 Merge pull request #2667 from alexbelgium/copilot/fix-claude-md-documentation
docs(CLAUDE.md): fix three inaccuracies in agent guidance
2026-04-22 07:27:01 +02:00
6 changed files with 19 additions and 8 deletions

View File

@@ -1,5 +1,8 @@
## 1.5.6-3 (2026-04-20)
## 1.5.6-4 (2026-04-22)
- Fix Bazarr crash on startup: base_url must start with '/' for Flask blueprint registration
## 1.5.6-3
- Add Ingress support with nginx reverse proxy for sidebar integration
- Add connection_mode option (ingress_noauth/noingress_auth/ingress_auth)

View File

@@ -112,5 +112,5 @@ schema:
slug: bazarr_nas
udev: true
url: https://github.com/alexbelgium/hassio-addons/tree/master/bazarr
version: "1.5.6-3"
version: "1.5.6-4"
webui: "[PROTO:ssl]://[HOST]:[PORT:6767]"

View File

@@ -35,16 +35,16 @@ if [ -f "$CONFIG_LOCATION" ]; then
ingress_noauth)
bashio::log.green "Ingress is enabled, authentication is disabled"
bashio::log.yellow "WARNING : Make sure that the port is not exposed externally by your router to avoid a security risk !"
# Set base_url
sed -i "s/ base_url:.*/ base_url: $slug/" "$CONFIG_LOCATION"
# Set base_url (must start with / for Flask blueprint registration)
sed -i "s| base_url:.*| base_url: /$slug|" "$CONFIG_LOCATION"
# Disable auth
sed -i '/^auth:/,/^[^ ]/{ s/ type:.*/ type: null/ }' "$CONFIG_LOCATION"
;;
# Ingress mode, with authentication
ingress_auth)
bashio::log.green "Ingress is enabled, and external authentication is enabled"
# Set base_url
sed -i "s/ base_url:.*/ base_url: $slug/" "$CONFIG_LOCATION"
# Set base_url (must start with / for Flask blueprint registration)
sed -i "s| base_url:.*| base_url: /$slug|" "$CONFIG_LOCATION"
# Enable Bazarr auth when leaving ingress_noauth
sed -i '/^auth:/,/^[^ ]/{ s/ type:.*/ type: form/ }' "$CONFIG_LOCATION"
;;

View File

@@ -1,5 +1,8 @@
## 0.6.6 (2026-04-21)
## 0.6.6-1 (2026-04-23)
- Fix 502 Bad Gateway on ingress: nginx now waits for the API server (port 5002) to be ready before starting. Previously, nginx started immediately while the ML model was still loading, causing all API calls to fail with 502 until the model finished loading.
- Update to latest version from Suncuss/BirdNET-PiPy (changelog : https://github.com/Suncuss/BirdNET-PiPy/releases)
## 0.6.4 (2026-04-18)

View File

@@ -96,4 +96,4 @@ schema:
ssl: bool?
slug: birdnet-pipy
url: https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pipy
version: "0.6.6"
version: "0.6.6-1"

View File

@@ -2,4 +2,9 @@
# shellcheck shell=bash
set -euo pipefail
# Wait for the API server to be ready before exposing the ingress. Without
# this, nginx starts immediately while the model is still loading (can take
# minutes), causing every frontend API call to return a 502 Bad Gateway.
bashio::net.wait_for 5002 127.0.0.1 300
nginx