Overview

MPD
a daemon used for playing music stored in a local directory
fookebox
python-based web interface serves as a remote control for MPD
uWSGI

this web server is specifically designed for the uWSGI protocol

Setup

aptitude install mpd fookebox uwsgi uwsgi-plugin-http uwsgi-plugin-python

MPD

fookebox

uWSGI

Setup with nginx

Provide fookebox at domain level

Remove the section location / from /etc/nginx/sites-enabled/default and replace it with the following two sections:

location /javascript { alias /usr/share/javascript; }
location / {
    root            html;
    uwsgi_pass      127.0.0.1:3031;
    uwsgi_param     SCRIPT_NAME /;
    include         uwsgi_params;
}

Provide fookebox below domain level

sections:

location /javascript { alias /usr/share/javascript; }
location /fookebox {
    uwsgi_pass      127.0.0.1:3031;
    uwsgi_param     SCRIPT_NAME /fookebox;
    include         uwsgi_params;
    uwsgi_modifier1 30;
}

The uwsgi_modifier1 setting takes care for removing SCRIPT_NAME from PATH_INFO before passing it to the uwsgi server.

Fookebox by uWSGI (zuletzt geändert am 2012-12-18 00:46:45 durch anonym)


Creative Commons Lizenzvertrag
This page is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.