Configure LastFM callback URL
Posted:
Thu Mar 28, 2013 9:00 pm
by maxxh
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.viewinstead of my custom URL
https://bla.blub/subsonic/
Re: Configure LastFM callback URL
Posted:
Thu Mar 28, 2013 10:45 pm
by PoGo
I second this request, I have the same problem for the same reason.
Re: Configure LastFM callback URL
Posted:
Tue Apr 02, 2013 8:08 pm
by hakko
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?
Re: Configure LastFM callback URL
Posted:
Sat Apr 06, 2013 1:07 am
by maxxh
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.