mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-16 18:12:29 +02:00
Bazarr's config.yaml carries a base_url key under general: (Bazarr's own
ingress path) AND a separate base_url under each configured *arr integration
-- radarr.base_url, sonarr.base_url, etc. -- which is how Bazarr reaches
those services at their own ingress-prefixed URL.
Every base_url sed in this addon was unscoped:
sed -i "s| base_url:.*| base_url: /$slug|" "$CONFIG_LOCATION"
sed applies s/// to every matching line in the file, not just the first, and
" base_url:.*" matches any 2-space-indented base_url line regardless of
which top-level section it's under. Since general.base_url, radarr.base_url,
sonarr.base_url etc. all sit at that same indent, this rewrote all of them to
Bazarr's own value on every container start (32-nginx_ingress.sh) and again
in the run script's fallback -- silently breaking Bazarr's configured
connections to Radarr and Sonarr.
Scope each sed to the general: block only, reusing the range idiom this file
already uses to scope the auth: block's type: substitution:
sed -i "/^general:/,/^[^ ]/{ s| base_url:.*| base_url: /$slug|; }" ...
Verified against a representative config.yaml (general/radarr/sonarr/subsarr
sections, including general:'s list-style provider entries) for all three
connection_mode branches plus the run script's fallback: general.base_url is
the only line touched in every case; radarr.base_url and sonarr.base_url
survive with their original values.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
116 lines
2.0 KiB
YAML
116 lines
2.0 KiB
YAML
arch:
|
|
- aarch64
|
|
- amd64
|
|
backup_exclude:
|
|
- "**/Backups/*"
|
|
- "**/logs/*"
|
|
- "**/MediaCover/*"
|
|
description: Companion application to Sonarr and Radarr to download subtitles
|
|
devices:
|
|
- /dev/dri
|
|
- /dev/dri/card0
|
|
- /dev/dri/card1
|
|
- /dev/dri/renderD128
|
|
- /dev/vchiq
|
|
- /dev/video10
|
|
- /dev/video11
|
|
- /dev/video12
|
|
- /dev/video13
|
|
- /dev/video14
|
|
- /dev/video15
|
|
- /dev/video16
|
|
- /dev/ttyUSB0
|
|
- /dev/sda
|
|
- /dev/sdb
|
|
- /dev/sdc
|
|
- /dev/sdd
|
|
- /dev/sde
|
|
- /dev/sdf
|
|
- /dev/sdg
|
|
- /dev/nvme
|
|
- /dev/nvme0
|
|
- /dev/nvme0n1
|
|
- /dev/nvme0n1p1
|
|
- /dev/nvme0n1p2
|
|
- /dev/nvme0n1p3
|
|
- /dev/nvme1n1
|
|
- /dev/nvme1n1p1
|
|
- /dev/nvme1n1p2
|
|
- /dev/nvme1n1p3
|
|
- /dev/nvme2n1
|
|
- /dev/nvme2n1p1
|
|
- /dev/nvme2n1p2
|
|
- /dev/nvme2n3p3
|
|
- /dev/mmcblk
|
|
- /dev/fuse
|
|
- /dev/sda1
|
|
- /dev/sdb1
|
|
- /dev/sdc1
|
|
- /dev/sdd1
|
|
- /dev/sde1
|
|
- /dev/sdf1
|
|
- /dev/sdg1
|
|
- /dev/sda2
|
|
- /dev/sdb2
|
|
- /dev/sdc2
|
|
- /dev/sdd2
|
|
- /dev/sde2
|
|
- /dev/sdf2
|
|
- /dev/sdg2
|
|
- /dev/sda3
|
|
- /dev/sdb3
|
|
- /dev/sda4
|
|
- /dev/sdb4
|
|
- /dev/sda5
|
|
- /dev/sda6
|
|
- /dev/sda7
|
|
- /dev/sda8
|
|
- /dev/nvme0
|
|
- /dev/nvme1
|
|
- /dev/nvme2
|
|
environment:
|
|
PGID: "0"
|
|
PUID: "0"
|
|
image: ghcr.io/alexbelgium/bazarr-{arch}
|
|
ingress: true
|
|
ingress_entry: bazarr
|
|
init: false
|
|
map:
|
|
- addon_config:rw
|
|
- homeassistant_config:rw
|
|
- share:rw
|
|
- media:rw
|
|
- ssl
|
|
name: Bazarr NAS
|
|
options:
|
|
env_vars: []
|
|
PGID: 0
|
|
PUID: 0
|
|
connection_mode: ingress_noauth
|
|
panel_admin: false
|
|
panel_icon: mdi:subtitles-outline
|
|
ports:
|
|
6767/tcp: 6767
|
|
ports_description:
|
|
6767/tcp: web interface
|
|
privileged:
|
|
- SYS_ADMIN
|
|
- DAC_READ_SEARCH
|
|
schema:
|
|
env_vars:
|
|
- name: match(^[A-Za-z0-9_]+$)
|
|
value: str?
|
|
PGID: int
|
|
PUID: int
|
|
TZ: str?
|
|
cifsdomain: str?
|
|
cifspassword: str?
|
|
cifsusername: str?
|
|
connection_mode: list(ingress_noauth|noingress_auth|ingress_auth)
|
|
localdisks: str?
|
|
networkdisks: str?
|
|
slug: bazarr_nas
|
|
udev: true
|
|
url: https://github.com/alexbelgium/hassio-addons/tree/master/bazarr
|
|
version: "1.6.0.2"
|