-
Notifications
You must be signed in to change notification settings - Fork 200
Album Art on your LAN
mafrosis edited this page Oct 4, 2012
·
8 revisions
MPDroid supports loading album cover artwork from your music directory across your local network. In order to do this, you need to install a webserver on the box running MPD, and configure it to serve files from your music directory.
We also add a rule to only serve to IP addresses on your local network to keep this secure.
$ sudo aptitude install nginx
If you already have nginx configured on your server, you should only merge the location
block from below into your existing server
config and restart nginx.
If you have a new nginx install, copy the below into a new file in /etc/nginx/sites-available/mpd-cover-art.conf
:
server {
listen 80;
server_name 192.168.1.102;
location /cover-art/ {
root /home/mafrosis/MP3/;
rewrite /cover-art/(.*) / break;
try_files $uri $uri;
allow 192.168.1.0/24;
deny all;
}
}
Now run the following commands to get nginx to pick up the new config:
$ sudo rm /etc/nginx/sites-enabled/mpd-cover-art.conf
$ sudo ln -s /etc/nginx/sites-available/mpd-cover-art.conf /etc/nginx/sites-enabled/
$ sudo /etc/init.d/nginx restart