rejetto forum

Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: JohnK on October 23, 2008, 02:02:29 PM

Title: RAWR-Template and stunnel
Post by: JohnK on October 23, 2008, 02:02:29 PM
Hi.

I tried the the RAWR-Template and everything works fine, even the mp3-preview-player. But when I used stunnel to secure the connection, HFS still work including downloads, but the mp3-preview-player doesn't work anymore. The player receives no data. Any solutions? Thanks.
Title: Re: RAWR-Template and stunnel
Post by: TSG on October 24, 2008, 03:27:13 AM
When HFS supports SSL itself even I will use it, so this will have to be fixed in the next release. I am taking note of all the issues.

Take a look in the javascript files... there might be a hard coded 'http' in there somewhere.
Title: Re: RAWR-Template and stunnel
Post by: Sjcs on December 20, 2008, 12:07:35 PM
to fix this i replaced:
Code: [Select]
function setRAWRBox(target,file) {
setName(file);
file = file.replace('+','%2B').replace('&','%26');

with:
Code: [Select]
function setRAWRBox(target,file) {
setName(file);
file = file.replace('+','%2B').replace('&','%26').replace('http','https');

this was in the rawr_default\code\rawr_previewbox.js, lines 106-108.

the only problem with this is that it then breaks the http mp3-streaming (however, if you're already using HFS with stunnel i assume this won't affect you much, as there is no point in not using a secure connection for everything).
Title: Re: RAWR-Template and stunnel
Post by: rejetto on December 26, 2008, 09:27:55 PM
did you try the "urls starting with https instead of http" ?