| 14 Jul 2025 |
n4ch723hr3r | if you cant you would just have to code up something yourself xD | 14:37:01 |
n4ch723hr3r | thats how i would do it at least :3 | 14:37:14 |
Zhaofeng Li | Hmm wait, so the http stream used by the listener can be proxied right? Is it just the source that's problematic? | 14:38:02 |
n4ch723hr3r | the problem with icecast is that, for whatever reason, it uses the same port for http as it does for raw TCP streams | 14:38:46 |
matthewcroughan - nix.zone | It's the fact that icecast wants to do what nginx is doing yes | 14:39:03 |
matthewcroughan - nix.zone | putting an nginx in front of icecast who wants to be in control of all this stuff, makes it a PITA | 14:39:27 |
matthewcroughan - nix.zone | I don't doubt it can be done, I just don't know how, and it seems like a waste of time | 14:39:44 |
Zhaofeng 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 - nix.zone | the listener is a http webpage | 14:40:59 |
n4ch723hr3r | matthew wants to have a public webradio, so VPNs, etc. wont work | 14:41:31 |
matthewcroughan - nix.zone | you go to https://foo.com, inside is a html element pointing to https://icecast.foo.com/stream | 14:41:39 |
matthewcroughan - nix.zone | https://icecast.foo.com/stream doesn't work via a nginx proxy, because the stream is not http | 14:42:00 |
matthewcroughan - nix.zone | this works on the lan though, when not proxied | 14:42:11 |
n4ch723hr3r | the best example domain is example.com or example.org (its an official example domain) | 14:42:14 |
matthewcroughan - nix.zone | too much typing | 14:42:27 |
matthewcroughan - nix.zone | example.com is more chars | 14:42:33 |
n4ch723hr3r | it shoudl also work in public if you dont mind exposing your icecast | 14:42:40 |
n4ch723hr3r | lmao | 14:42:45 |
@saiko:knifepoint.net | can 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 service | 14:45:35 |
@saiko:knifepoint.net | or does it only give you relative urls | 14:45:40 |
matthewcroughan - 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 - nix.zone | whereas the administration page shows the listenurl correctly and the streams go to `icecast.foo.com:800/stream | 14:47:03 |
matthewcroughan - nix.zone | * whereas the administration page shows the listenurl correctly and the streams go to `icecast.foo.com:800/stream` | 14:47:05 |
matthewcroughan - nix.zone | * whereas the administration page shows the listenurl correctly and the streams go to icecast.foo.com:8000/stream | 14:47:11 |
n4ch723hr3r | probably some config issue | 14:47:17 |
matthewcroughan - nix.zone | Could be yeah | 14:47:24 |
@saiko:knifepoint.net | you might need to modify the proxy port header | 14:47:27 |
matthewcroughan - nix.zone | I've been looking around for examples | 14:47:31 |
matthewcroughan - nix.zone | I think I'll make a minimal icecast example if I ever figure this | 14:47:38 |
matthewcroughan - nix.zone | * I think I'll make a minimal icecast example if I ever figure this ollut | 14:47:41 |