- Frontend reads window.NS_SERVER_URL from config.js (injected at container start via docker-entrypoint.sh) and pre-fills the setup screen - Removed triggerNaviScan from frontend and backend (Navidrome auto-scans on file change) - Removed NAVIDROME_USER/PASS from backend and compose Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7 lines
211 B
Bash
7 lines
211 B
Bash
#!/bin/sh
|
|
# Generate runtime config from env vars so the frontend knows the Navidrome URL
|
|
cat > /usr/share/nginx/html/config.js <<EOF
|
|
window.NS_SERVER_URL = "${NAVIDROME_URL:-}";
|
|
EOF
|
|
exec nginx -g "daemon off;"
|