mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-20 07:41:48 +02:00
Merge pull request #2668 from alexbelgium/copilot/fix-starting-custom-scripts
bazarr: fix startup crash due to missing leading slash in base_url
This commit is contained in:
@@ -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 Ingress support with nginx reverse proxy for sidebar integration
|
||||||
- Add connection_mode option (ingress_noauth/noingress_auth/ingress_auth)
|
- Add connection_mode option (ingress_noauth/noingress_auth/ingress_auth)
|
||||||
|
|
||||||
|
|||||||
@@ -112,5 +112,5 @@ schema:
|
|||||||
slug: bazarr_nas
|
slug: bazarr_nas
|
||||||
udev: true
|
udev: true
|
||||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/bazarr
|
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]"
|
webui: "[PROTO:ssl]://[HOST]:[PORT:6767]"
|
||||||
|
|||||||
@@ -35,16 +35,16 @@ if [ -f "$CONFIG_LOCATION" ]; then
|
|||||||
ingress_noauth)
|
ingress_noauth)
|
||||||
bashio::log.green "Ingress is enabled, authentication is disabled"
|
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 !"
|
bashio::log.yellow "WARNING : Make sure that the port is not exposed externally by your router to avoid a security risk !"
|
||||||
# Set base_url
|
# Set base_url (must start with / for Flask blueprint registration)
|
||||||
sed -i "s/ base_url:.*/ base_url: $slug/" "$CONFIG_LOCATION"
|
sed -i "s| base_url:.*| base_url: /$slug|" "$CONFIG_LOCATION"
|
||||||
# Disable auth
|
# Disable auth
|
||||||
sed -i '/^auth:/,/^[^ ]/{ s/ type:.*/ type: null/ }' "$CONFIG_LOCATION"
|
sed -i '/^auth:/,/^[^ ]/{ s/ type:.*/ type: null/ }' "$CONFIG_LOCATION"
|
||||||
;;
|
;;
|
||||||
# Ingress mode, with authentication
|
# Ingress mode, with authentication
|
||||||
ingress_auth)
|
ingress_auth)
|
||||||
bashio::log.green "Ingress is enabled, and external authentication is enabled"
|
bashio::log.green "Ingress is enabled, and external authentication is enabled"
|
||||||
# Set base_url
|
# Set base_url (must start with / for Flask blueprint registration)
|
||||||
sed -i "s/ base_url:.*/ base_url: $slug/" "$CONFIG_LOCATION"
|
sed -i "s| base_url:.*| base_url: /$slug|" "$CONFIG_LOCATION"
|
||||||
# Enable Bazarr auth when leaving ingress_noauth
|
# Enable Bazarr auth when leaving ingress_noauth
|
||||||
sed -i '/^auth:/,/^[^ ]/{ s/ type:.*/ type: form/ }' "$CONFIG_LOCATION"
|
sed -i '/^auth:/,/^[^ ]/{ s/ type:.*/ type: form/ }' "$CONFIG_LOCATION"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user