LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2019, 10:30 PM   #1
ikristiank
LQ Newbie
 
Registered: Aug 2019
Posts: 7

Rep: Reputation: Disabled
Darkice/Icecast weird interaction with nginx


I've just got an nginx reverse proxy set up so that users on my intranet can go to a URL to access my Icecast stream.

Before the reverse proxy, the stream URL looked like '192.168.0.1:8000/stream.mp3.m3u' and now I've got it to load that same file in 'example.com', now the issue is that there is no audio when going to 'example.com' when there is audio at '192.168.0.1:8000/stream.mp3.m3u'.

Is there some setting in Darkice or Icecast that would allow it to be accessed through a reverse proxy like this? Or is there something I might have missed in setting up the reverse proxy?

For the reverse proxy, I used nginx and changed the /etc/nginx/sites-available/default to:
Code:
add
server {
        listen 80;
        listen [::]:80;

        server_name example.com www.example.com;

        location / {
                proxy_pass http://192.168.0.1:8000/stream.mp3.m3u;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection 'upgrade';
                proxy_set_header Host $host;
                proxy_cache_bypass $http_upgrade;
        }
}
Again, the page loads what looks like a stream, but for some reason it produces no audio.

E: Additionally, I added the following line to my /etc/hosts file:
Code:
192.168.0.1 example.com

Last edited by ikristiank; 08-25-2019 at 10:30 PM. Reason: Additional Info
 
  


Reply

Tags
icecast2, nginx, streaming


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] DarkIce, ALSA & Intel HDA Audio Bravo_97 Linux - Software 1 02-15-2014 10:07 AM
Lame and Darkice alpenfelt Linux - Software 2 06-11-2010 12:30 PM
Weird interaction between wget and cron dinoman1989 Programming 2 07-11-2007 02:29 AM
darkice with lame support can't find lame h2gofast Debian 4 03-17-2006 11:20 AM
DarkIce No Sound Problem neurotic Linux - Software 1 01-12-2006 05:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration