Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Re: Enabling https for Subsonic?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-03-29
12:08 PM
2011-03-29
12:08 PM
Enabling https for Subsonic?
the offical subsonic "getting started" page at http://www.subsonic.org/pages/getting-started.jsp
gives these instructions:
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)
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
Labels:
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-03-31
02:03 AM
2011-03-31
02:03 AM
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
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-07-25
02:42 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-07-27
06:45 AM
2011-07-27
06:45 AM
Re: Enabling https for Subsonic?
Do as Fred writes (almost):
In this file just change the line which says
SUBSONIC_HTTPS_PORT=0
to
SUBSONIC_HTTPS_PORT=4043
Then continue as Fred writes:
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
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-09-15
05:36 AM
2011-09-15
05:36 AM
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
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-09-22
02:54 PM
2011-09-22
02:54 PM
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?
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-11-23
08:57 PM
2011-11-23
08:57 PM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-11-29
10:56 AM
2011-11-29
10:56 AM
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!
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-12-27
07:09 AM
2011-12-27
07:09 AM
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 ?
@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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-12-27
12:44 PM
2011-12-27
12:44 PM
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
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-12-27
02:37 PM
2011-12-27
02:37 PM
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]
[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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-01-09
07:54 AM
2012-01-09
07:54 AM
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?
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2012-01-19
11:28 PM
2012-01-19
11:28 PM
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...
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-06-18
01:50 PM
2013-06-18
01:50 PM
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 !
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-09-29
01:58 AM
2013-09-29
01:58 AM
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 !
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