Answer the question
In order to leave comments, you need to log in
How to transfer the icecast broadcast stream to the site (located on the same server)?
Good afternoon!
There is a VPS on Ubuntu 16.04 x64 (IP for example: 1.2.3.4)
Installed: Icecast, Apache, MySQL, vsFTPd Domain
connected: 123.com
Installed Let'sEncrypt
Icecast certificate - broadcasts radio on port 8000
Using relay, the stream is relayed to the mounted point ./deep-house
That is, you can listen to the radio at: 1.2.3.4:8000/deep-house
A virtual host is raised in Apache: DocumentRoot /var/www/123.com/public_html
And the site is filled in the /public_html folder, in which, using the AUDIO tag
, the SRC path for streaming is specified 1.2.3.4:8000/deep-house The
radio on the site is playing - everything is fine! The site opens over HTTPS.
Now I can listen to the radio by logging into my site at https://123.com/deep-house
However, when I open the page where the AUDIO tag with the radio stream is placed, the
Browser immediately changes HTTPS to HTTP and gives a warning in the console :
"Mixed Content: The page at ' https://123.com/#/deep-house ' was loaded over HTTPS, but requested an insecure audio file ' 1.2.3.4:8000/deep-house '. This content should also be served over HTTPS
A sample of my relay in the configuration file (/etc/icecast2/icecast.xml) see screenshot I need to decide
how
to broadcast over HTTPS (requirement for creating a PWA)
if we locally uploaded an mp3 file to the /src/ folder.
Not so strong in Linux ...
Please respond, who dealt with Icecast
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question