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

Setup doesn't seem to work behind my apache reverse proxy #700

Closed gunslingerfry closed 6 years ago

gunslingerfry commented 6 years ago

python3 cherrymusic --setup --port 8081 -c server.rootpath=/cherrymusic does not load all the elements properly. However, python3 cherrymusic --port 8081 -c server.rootpath=/cherrymusic media.basedir=/path does seem to work properly.

I'm reverse proxying from 443 to the http port like so:

ProxyPass /cherrymusic http://example.com:8081/cherrymusic
ProxyPassReverse /cherrymusic http://example.com:8081/cherrymusic
ProxyPreserveHost off
ProxyRequests off

This is off the git devel branch as of today reported as 0.41.1. Ubuntu 16.04 CherryPy 11.1.0 Apache 2.4.29

gunslingerfry commented 6 years ago

Figured it out. The proxy was on a remote server and setup wants localhost specifically.

ssh <host> -L 8080:localhost:8080

browse to http://localhost:8080 and you're golden.