rejetto forum

RAWR-Template and stunnel

Guest · 4 · 6681

0 Members and 1 Guest are viewing this topic.

JohnK

  • Guest
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.


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
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.


Sjcs

  • Guest
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).


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
did you try the "urls starting with https instead of http" ?