!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

902 Members
Declaratively manage your switching, routing, wireless, tunneling and more.263 Servers

Load older messages


SenderMessageTime
14 Jul 2025
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneputting an nginx in front of icecast who wants to be in control of all this stuff, makes it a PITA14:39:27
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI don't doubt it can be done, I just don't know how, and it seems like a waste of time14:39:44
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @n4ch723hr3r:nope.chat
the problem with icecast is that, for whatever reason, it uses the same port for http as it does for raw TCP streams
Can the listener use the nginx-proxied endpoint, while the streamer accesses icecast directly over wireguard or whatever
14:40:33
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonethe listener is a http webpage14:40:59
@n4ch723hr3r:nope.chatn4ch723hr3rmatthew wants to have a public webradio, so VPNs, etc. wont work14:41:31
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneyou go to https://foo.com, inside is a html element pointing to https://icecast.foo.com/stream 14:41:39
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone https://icecast.foo.com/stream doesn't work via a nginx proxy, because the stream is not http 14:42:00
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonethis works on the lan though, when not proxied14:42:11
@n4ch723hr3r:nope.chatn4ch723hr3rthe best example domain is example.com or example.org (its an official example domain)14:42:14
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonetoo much typing14:42:27
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneexample.com is more chars14:42:33
@n4ch723hr3r:nope.chatn4ch723hr3rit shoudl also work in public if you dont mind exposing your icecast14:42:40
@n4ch723hr3r:nope.chatn4ch723hr3rlmao14:42:45
@saiko:knifepoint.net@saiko:knifepoint.netcan you set it up so that port 443 goes through nginx, and all the links to the streams on the page (iirc it shows you a directory of available streams right?) have an absolute url with another port on the same domain, which is the raw icecast service14:45:35
@saiko:knifepoint.net@saiko:knifepoint.netor does it only give you relative urls14:45:40
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone For some reason, the streams on the page go to icecast.foo.com and not icecast.foo.com:8000 14:46:50
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone whereas the administration page shows the listenurl correctly and the streams go to `icecast.foo.com:800/stream 14:47:03
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone * whereas the administration page shows the listenurl correctly and the streams go to `icecast.foo.com:800/stream` 14:47:05
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone * whereas the administration page shows the listenurl correctly and the streams go to icecast.foo.com:8000/stream 14:47:11
@n4ch723hr3r:nope.chatn4ch723hr3rprobably some config issue14:47:17
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneCould be yeah14:47:24
@saiko:knifepoint.net@saiko:knifepoint.netyou might need to modify the proxy port header14:47:27
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI've been looking around for examples14:47:31
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI think I'll make a minimal icecast example if I ever figure this14:47:38
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone* I think I'll make a minimal icecast example if I ever figure this ollut14:47:41
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone* I think I'll make a minimal icecast example if I ever figure this out14:47:43
@saiko:knifepoint.net@saiko:knifepoint.netit probably reacts to one of these https://github.com/NixOS/nixpkgs/blob/nixos-25.05/nixos/modules/services/web-servers/nginx/default.nix#L10714:48:53
@saiko:knifepoint.net@saiko:knifepoint.net(Host or X-Forwarded-Host)14:49:27
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneAnother thing is that icecast is http 1.0 afaik14:49:58
@n4ch723hr3r:nope.chatn4ch723hr3ralso: arent those proprietary extensions to icecast against its license (GPLv2 or later)14:50:05

Show newer messages


Back to Room ListRoom Version: 6