Spotify integration added

This commit is contained in:
2026-05-17 13:35:34 +02:00
parent 9a9275dae5
commit 4d53efc9e4
16 changed files with 1890 additions and 82 deletions
+22
View File
@@ -72,6 +72,28 @@ server {
proxy_read_timeout 10s;
}
# ── Spotify credential store (served by bandcamp-api) ───────────────────
location /api/spotify/ {
set $bandcamp_api http://bandcamp-api:8091;
rewrite ^/api/spotify/(.*)$ /spotify/$1 break;
proxy_pass $bandcamp_api;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 15s;
proxy_connect_timeout 10s;
}
# ── Bandcamp API (credential store + login test) ─────────────────────────
location /api/bandcamp/ {
set $bandcamp_api http://bandcamp-api:8091;
rewrite ^/api/bandcamp/(.*)$ /$1 break;
proxy_pass $bandcamp_api;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 30s;
proxy_connect_timeout 10s;
}
# ── Snapcast now playing recognition ─────────────────────────────────────
# host.docker.internal lives in /etc/hosts (extra_hosts), not in Docker's
# embedded DNS (127.0.0.11), so we must NOT use a set/$var here — a static