Setting up reverse proxy with Subsonic in Caddy webserver

Need help? Post your questions here.

Moderator: moderators

Setting up reverse proxy with Subsonic in Caddy webserver

Postby evilmanimani » Fri Sep 08, 2017 7:32 pm

I'm attempting to configure http://www.caddyserver.com to work with Subsonic as a reverse proxy, it had Let's Encrypt support built in, and tends to have simpler configuration compared to something like NGINX or Apache.

I've almost got it working but have run into a bit of a snag. Currently I'm able to view https://my.domain.com/subsonic and can login, play tracks, and navigate around with the exception of the 'Settings' and 'Playing' buttons, neither loads when clicked, and the notification appears in the address bar that "This page is trying to load scripts from unauthenticated sources, i.e. the pages are being served via HTTP rather than HTTPS. I can of course click "Load unsafe scripts" to load the pages in questions, but that isn't ideal.

My config currently looks like this (omitting everything else not related to subsonic):

Code: Select all
my.domain.com {
   gzip
   tls email@email.com
    proxy /subsonic 127.0.0.1:4040 {
     header_upstream X-Forwarded-Host {host}
     transparent
    }
}


Just wondering if anyone who has more experience with this sort of thing might be able to chime in, anything I should add? Even if you have some NGINX specific examples of a working config that may at least point me in the right direction. Cheers.

edit: After a bunch of research it looks like this is a known issue: https://sourceforge.net/p/subsonic/bugs/179/ something to do with internal URLs not being rewritten correctly, however the issue remains closed, any input from the dev?
evilmanimani
 
Posts: 17
Joined: Fri Mar 25, 2016 8:38 pm

Re: Setting up reverse proxy with Subsonic in Caddy webserve

Postby evilmanimani » Wed Oct 11, 2017 3:36 am

Bump. Any input from Sindre? Looks like this problem is affecting forks as well (like Airsonic for instance)
evilmanimani
 
Posts: 17
Joined: Fri Mar 25, 2016 8:38 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 8 guests