Release v1.0.5: OAuth-Server auf 0.0.0.0 gepatcht
librespot bindet den OAuth-Callback-Server an 127.0.0.1 (nur lokal erreichbar). Das macht den OAuth-Flow von Heimnetz-Geräten unmöglich. Fix: librespot Quellcode wird geklont, oauth/src/lib.rs gepatcht (127.0.0.1 → 0.0.0.0), und dann mit cargo build kompiliert. Damit ist http://<ha-ip>:5588 aus dem Browser im Heimnetz erreichbar. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,23 +12,26 @@ RUN apk add --no-cache \
|
|||||||
openssl-libs-static \
|
openssl-libs-static \
|
||||||
git
|
git
|
||||||
|
|
||||||
# Librespot aus dem Git-Tag mit --locked kompilieren.
|
# Librespot aus dem Git-Tag klonen, patchen und kompilieren.
|
||||||
#
|
#
|
||||||
# Hintergrund: `cargo install librespot --version X.Y.Z` (ohne --locked) löst
|
# Patch: OAuth-Server bindet an 0.0.0.0 statt 127.0.0.1.
|
||||||
# immer die NEUESTEN kompatiblen Abhängigkeiten auf. Das zieht vergen-gitcl
|
# Standard: 127.0.0.1 → nur vom HA-Host selbst erreichbar.
|
||||||
# >= 1.0 rein, das vergen-lib 9.x benötigt. librespot-core's build.rs erwartet
|
# Mit 0.0.0.0 → der OAuth-Flow ist im Browser aus dem Heimnetz zugänglich.
|
||||||
# jedoch vergen-lib 0.1.x → Versionkonflikt → Build-Fehler E0277.
|
|
||||||
#
|
#
|
||||||
# Mit `--git --tag --locked` verwendet cargo das originale Cargo.lock aus dem
|
# --locked: verwendet das originale Cargo.lock aus dem Tag (pinnt vergen-gitcl
|
||||||
# Release-Tag, das vergen-gitcl 0.x pinnt und damit kompatibel ist.
|
# auf 0.x und vermeidet so den vergen_lib Versionskonflikt mit 9.x).
|
||||||
RUN cargo install \
|
RUN git clone --depth 1 --branch v0.7.0 \
|
||||||
--git https://github.com/librespot-org/librespot \
|
https://github.com/librespot-org/librespot.git /build && \
|
||||||
--tag v0.7.0 \
|
cd /build && \
|
||||||
|
# OAuth-Server auf allen Interfaces binden (statt nur 127.0.0.1)
|
||||||
|
sed -i 's/127\.0\.0\.1/0.0.0.0/g' oauth/src/lib.rs && \
|
||||||
|
cargo build \
|
||||||
|
--release \
|
||||||
--locked \
|
--locked \
|
||||||
--no-default-features \
|
--no-default-features \
|
||||||
--features "native-tls" \
|
--features "native-tls" && \
|
||||||
--root /install \
|
mkdir -p /install/bin && \
|
||||||
librespot
|
cp target/release/librespot /install/bin/librespot
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
# Runtime stage: HA-Basis-Image + ffmpeg + icecast
|
# Runtime stage: HA-Basis-Image + ffmpeg + icecast
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: "Busch-Radio Spotify Bridge"
|
name: "Busch-Radio Spotify Bridge"
|
||||||
version: "1.0.4"
|
version: "1.0.5"
|
||||||
slug: busch_radio_spotify
|
slug: busch_radio_spotify
|
||||||
description: >
|
description: >
|
||||||
Streamt Spotify-Musik als Internet-Radio-Stream für das Busch-Jäger Unterputz-Internetradio.
|
Streamt Spotify-Musik als Internet-Radio-Stream für das Busch-Jäger Unterputz-Internetradio.
|
||||||
|
|||||||
Reference in New Issue
Block a user