Configure LastFM callback URL

Artist radio, genre radio & related artists. A Subsonic server for music nerds.

Moderator: moderators

Configure LastFM callback URL

Postby maxxh » Thu Mar 28, 2013 9:00 pm

Would it be possible for the LastFM callback URL to use the 'Share URL prefix'?

I am running a Proxy before the Subsonic Server, so the callback URL points to
http://localhost:8087/subsonic/lastFmSettings.view
instead of my custom URL
https://bla.blub/subsonic/
maxxh
 
Posts: 21
Joined: Sat Apr 16, 2011 9:22 pm
Location: Austria

Re: Configure LastFM callback URL

Postby PoGo » Thu Mar 28, 2013 10:45 pm

I second this request, I have the same problem for the same reason.
PoGo
 
Posts: 36
Joined: Thu Apr 21, 2011 11:07 pm

Re: Configure LastFM callback URL

Postby hakko » Tue Apr 02, 2013 8:08 pm

One person actually committed a patch for that.. but I turned it down (and felt a bit bad) because it doesn't take into account that even if you have a share prefix, you might still be accessing your server via localhost. And if you're browsing via localhost and the callback url is your share prefix, it won't work either as you don't have a session for that. Any smart ideas on how to detect this and create a solution that works for both people using proxies and people browsing through localhost?
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Configure LastFM callback URL

Postby maxxh » Sat Apr 06, 2013 1:07 am

Good points hakko, i missed that possible session issue.

For now i have just configured my Proxy to preserve the original HTTP Host, which is a good enough workaround.
maxxh
 
Posts: 21
Joined: Sat Apr 16, 2011 9:22 pm
Location: Austria


Return to MusicCabinet

Who is online

Users browsing this forum: No registered users and 10 guests