× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: Enabling https for Subsonic?

bozolino1
Aspirant

Enabling https for Subsonic?

the offical subsonic "getting started" page at http://www.subsonic.org/pages/getting-started.jsp
gives these instructions:

4 Using https
For improved security you can turn on https encryption. On Windows, open the Subsonic Control Panel by clicking on the Subsonic tray icon, then enable https on the specified port (default 443).

On Linux, add --https-port=4443 (or any other port) to SUBSONIC_ARGS in /etc/default/subsonic (Ubuntu/Debian) or /etc/sysconfig/subsonic (Fedora/RPM).


Can anyone please give instructions on how to do this on the ReadyNas?

I couldn't find /etc/default/subsonic
(running subsonic add-on 2.0 with ffpmeg add-on 1.2)
Message 1 of 15
fdullemond
Aspirant

Re: Enabling https for Subsonic?

I am also looking for this one, and found the place to post it, but unfortunately could not get it to work..

In
/c/webroot/subsonic

edit
vi subsonic.sh

Change
-Dsubsonic.port=${SUBSONIC_PORT} \
to
-Dsubsonic.httpsPort=${SUBSONIC_PORT} \

run
/etc/frontview/addons/bin/SUBSONIC/stop.sh
/etc/frontview/addons/bin/SUBSONIC/start.sh

HTTPS seems to work just fine on the 4040 port, however i get following error:

HTTP ERROR: 404
NOT_FOUND
RequestURI=/login.view
Powered by jetty://

I have not investigated any further.. but there seems to be something missing still.....

Fred
Message 2 of 15
Xophile
Aspirant

Re: Enabling https for Subsonic?

Any news regarding this?
Message 3 of 15
bent2
Aspirant

Re: Enabling https for Subsonic?

Do as Fred writes (almost):

fdullemond wrote:

In
/c/webroot/subsonic

edit
vi subsonic.sh


In this file just change the line which says

SUBSONIC_HTTPS_PORT=0

to

SUBSONIC_HTTPS_PORT=4043

Then continue as Fred writes:

fdullemond wrote:

run
/etc/frontview/addons/bin/SUBSONIC/stop.sh
/etc/frontview/addons/bin/SUBSONIC/start.sh


If you now try to access Subsonic with http on the standard port 4040 it will automatically redirect you to https on port 4043 (or whatever you choose).

I am running Subsonic 4.5.beta1 (build 2285).

BR Bent
Message 4 of 15
fdullemond
Aspirant

Re: Enabling https for Subsonic?

Hi Bent,

How the heck I could have missed this !!!

Works perfectly, hopes https is also supported by the android client....

Thanks,

Fred
Message 5 of 15
honoka
Aspirant

Re: Enabling https for Subsonic?

Im trying to enable HTTPS aswell. I don't have root-access to my Ultra 2, do I need to have it?
I can edit subsonic.sh as described in the thread, but since I lack root I'm not able to run stop.sh and start.sh.
I tried editing the subsonic.sh and then just restarting Subsonic in the Frontview UI. But after stoping the service I couldn't start it again.
Not even after editing the file back to normal. Must be a permissions thing I guess.
So, any tips on achieving this without root access?
Message 6 of 15
xsspeed03
Aspirant

Re: Enabling https for Subsonic?

After I change the destination address for the subsonic interface, how to I get the button in Frontview to point to the new location? I can get to it manually, just curious how to modify the button so it works too. Thanks guys.
Message 7 of 15
Xophile
Aspirant

Re: Enabling https for Subsonic?

Hey everyone!

Subsonic has been working 100% for me the last few months with HTTPS enabled but all of a sudden it refused to decode FLAC-->Mp3. I tried everything but I eventually gave up and did a clean install on my Readynas ultra 4.

Now I can't get HTTPS working again. I've tried editing the subsonic.sh but this time it simply doesn't work. I have these lines:
SUBSONIC_PORT=4040
SUBSONIC_HTTPS_PORT=4043

I've tried setting the SUBSONIC_PORT=0 but then everything failes. What am I doing wrong here?

Thanks!
Message 8 of 15
fdullemond
Aspirant

Re: Enabling https for Subsonic?

@honoka : Other than 'gain root access' ?... no
@xsspeed03 : hack thr frontview sources, but then you might mess up things.... why changing url anyway ?
@xophile : hmm... mine is running on a NVX, perhaps the Ultra 4 is lacking some SSL/TLS libraries ?
Message 9 of 15
xsspeed03
Aspirant

Re: Enabling https for Subsonic?

@fdullemond

I forgot I put that post here. I actually figured out how to change where the button in Frontview directs to. The reason for this is because the firewall at my workplace will not allow me to get to port 4040, but a higher port works fine. So I just changed the port that Subsonic uses.

Here's the how-to in case anyone is interested: viewtopic.php?f=36&t=59025#p331933
Message 10 of 15
fdullemond
Aspirant

Re: Enabling https for Subsonic?

If you are running this from work, you might really consider running subsonic using https to avoid traffic monitoring...

[paranoid mode=on]
With http your subsonic credentials will be transported in the clear.... not the most optimal arrangement to run over the internet.
[/paranoid]
Message 11 of 15
xsspeed03
Aspirant

Re: Enabling https for Subsonic?

@fdullemond

That's a very good point.
I tried going though the steps above to enable https, but can't get it to work. I get an error page. Something about the SSL record being too long. Any ideas?
Message 12 of 15
fdullemond
Aspirant

Re: Enabling https for Subsonic?

not really.....
perhaps see whether you can run frontview in https, if not than its probably something with the java libraries subsonic is using...
Message 13 of 15
Thoto
Tutor

Re: Enabling https for Subsonic?

Great news, friends !
I found how to make it work using the latest release...

you have to edit subsonic.sh, adding the SUBSONIC_HTTPS_PORT=4043 thing, as we had to do...

BUT... the way arguments are passed seems to have changed, and the bottom of the script lacks a line for sending the https port.
so, you must add
-Dsubsonic.httpsPort=${SUBSONIC_HTTPS_PORT} \
near the other arguments lines... And then, it looks like:

/c/webroot/subsonic/jre1.6.0_20/bin/java -Xmx${SUBSONIC_MAX_MEMORY}m \
-Dsubsonic.home=${SUBSONIC_HOME} \
-Dsubsonic.host=${SUBSONIC_HOST} \
-Dsubsonic.port=${SUBSONIC_PORT} \
-Dsubsonic.httpsPort=${SUBSONIC_HTTPS_PORT} \
-Dsubsonic.contextPath=${SUBSONIC_CONTEXT_PATH} \
-Dsubsonic.defaultMusicFolder=${SUBSONIC_DEFAULT_MUSIC_FOLDER} \
-Dsubsonic.defaultPodcastFolder=${SUBSONIC_DEFAULT_PODCAST_FOLDER} \
-Dsubsonic.defaultPlaylistFolder=${SUBSONIC_DEFAULT_PLAYLIST_FOLDER} \
-jar /c/webroot/subsonic/subsonic-booter-jar-with-dependencies.jar > ${LOG} 2>&1 &

Don't forget to stop.sh and start.sh and... tadaaaa ! it works using HTTPS !
Message 14 of 15
Thoto
Tutor

Re: Enabling https for Subsonic?

Hi All,

looks like SuperPoussin made the update for passing arguments I was talking about previously, in the latest plugin version.
All you have to do now is as before, setting the SUBSONIC_HTTPS_PORT variable.

Bye !
Message 15 of 15
Top Contributors
Discussion stats
  • 14 replies
  • 7489 views
  • 0 kudos
  • 7 in conversation
Announcements