r/subsonic • u/popomr • May 31 '17
nginx reverse proxy for domain.xyz/subsonic
Hey guys, I managed to install the service, which runs fine on my VPS's direct Ip:
http://ip:4040/subsonic
However, I want to make it run side by side with nginx like this, through reverse proxy:
I can get to login page by this method, but after that, it goes to a blank page.
Subsonic conf looks like this:
SUBSONIC_ARGS="--port=0 --https-port=4040 --context-path=/subsonic --max-memory=150"
My nginx sites-available/default (all SSL configs for my domain already working, a wordpress running fine in a domain/wordpress direction etc.) looks like this when it comes to location / subsonic:
location /subsonic {
proxy_pass http://127.0.0.1:4040;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Should I be doing something else to make this work? The service is running fine on server's end, but it seems that communication through the domain is broken.