devsnd / cherrymusic

Stream your own music collection to all your devices! The easy to use free and open-source music streaming server.
http://www.fomori.org/cherrymusic
GNU General Public License v3.0
1.03k stars 189 forks source link

Cherrymusic behing nginx with uwsgi #715

Closed gldhnchn closed 6 years ago

gldhnchn commented 6 years ago

Here it is written, that it is possible to run cherrymuic behind nginx. I've played around with uwsgi and made it to a hello world page, but I have no clue how to access cherrymusic via nginx and uwsgi. Is there someone who can give me a hint?

I tried it with uwsgi_pass 127.0.0.1:8080 while cherrymusic was running, but only got "HTTP requires CRLF terminators" when trying to load cherrymusic in the web browser.

gldhnchn commented 6 years ago

I made it now, it is really simple indeed.

proxy_redirect     off;
proxy_set_header   Host $host;
proxy_set_header   X-Real-IP $remote_addr;
proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header   X-Forwarded-Host $server_name;
proxy_pass         http://127.0.0.1:8080;