Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


secure stream http
#7
sorry if i am not clear, i am gonna try to re-phrase it better now.

After successfully trying the stream option in moode audio, I want to stream my music on a webpage that also show the name of the track as well as play the music.

So I write this little html like below :

<body class="clearfix">
   <audio loop autoplay name="media"><source src="http://myip:mystreamport" type="audio/flac"></audio>
   <div id="song"></div>

</body>

then in order to show the name of the song, I activated last.fm option and then with this little javascript I update it every 15sec.

//every 15sec
window.setInterval(function(){
   fetch('https://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=myuser&api_key=myapikey&format=json')
       .then(function (response) {
           return response.json();
       })
       .then(function (data) {
           appendData(data);
       })
       .catch(function (err) {
           console.log('error: ' + err);
   });
 }, 15000);//every 15sec
 

function appendData(data) {
   var song = document.getElementById("song");
   song.innerHTML = "'"+data.recenttracks.track[0].name+"' in '"+data.recenttracks.track[0].album["#text"]+"' by '"+data.recenttracks.track[0].artist["#text"]+"'";
}



then I got that warning "Mixed Content: The page at 'https://mylittleradio.com/' was loaded over HTTPS, but requested an insecure audio file 'http://myip:myport/'. This content should also be served over HTTPS."

This is a warning but very soon will be blocking since the web is moving forward to be more secure with https by default everywhere nowadays.

So this is my question, is there a way to configure nginx in order to add ssl certificate configuration to my stream url ?
I also looked about icecast2 that does that but I am really keen on mixing to many software together when nginx is already there and shall be able to do the job.

Hope it is more clear and making sense.
Please don't hesitate to ask me specific details if I can provide to bring more clarity to my problematic.

thanks !
Reply


Messages In This Thread
secure stream http - by LeGuiz - 02-13-2020, 03:54 PM
RE: secure stream http - by vinnn - 02-13-2020, 04:12 PM
RE: secure stream http - by LeGuiz - 02-14-2020, 05:21 PM
RE: secure stream http - by TheOldPresbyope - 02-14-2020, 05:31 PM
RE: secure stream http - by LeGuiz - 02-14-2020, 05:22 PM
RE: secure stream http - by Tim Curtis - 02-14-2020, 06:31 PM
RE: secure stream http - by LeGuiz - 02-16-2020, 01:26 PM
RE: secure stream http - by vinnn - 02-16-2020, 01:55 PM
RE: secure stream http - by LeGuiz - 02-29-2020, 06:11 AM
RE: secure stream http - by vinnn - 02-29-2020, 04:26 PM
RE: secure stream http - by LeGuiz - 03-13-2020, 05:34 PM
RE: secure stream http - by LeGuiz - 03-13-2020, 07:07 PM
RE: secure stream http - by vinnn - 03-13-2020, 11:04 PM

Forum Jump: