Spotify integration added
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user