!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

846 Members
Declaratively manage your switching, routing, wireless, tunneling and more. | Don't rely on `networking.*` use systemd-networkd and NetworkManager instead. | Set `SYSTEMD_LOG_LEVEL=debug` to debug networking issues with networkd | No bad nft puns, please. | Room recommendations: #sysops:nixos.org246 Servers

Load older messages


SenderMessageTime
14 Jul 2025
@matthewcroughan:defenestrate.itmatthewcroughanyou go to https://foo.com, inside is a html element pointing to https://icecast.foo.com/stream 14:41:39
@matthewcroughan:defenestrate.itmatthewcroughan https://icecast.foo.com/stream doesn't work via a nginx proxy, because the stream is not http 14:42:00
@matthewcroughan:defenestrate.itmatthewcroughanthis 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.itmatthewcroughantoo much typing14:42:27
@matthewcroughan:defenestrate.itmatthewcroughanexample.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.netKatalin 🔪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 service14:45:35
@saiko:knifepoint.netKatalin 🔪or does it only give you relative urls14:45:40
@matthewcroughan:defenestrate.itmatthewcroughan 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 whereas the administration page shows the listenurl correctly and the streams go to `icecast.foo.com:800/stream 14:47:03
@matthewcroughan:defenestrate.itmatthewcroughan * whereas the administration page shows the listenurl correctly and the streams go to `icecast.foo.com:800/stream` 14:47:05
@matthewcroughan:defenestrate.itmatthewcroughan * 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.itmatthewcroughanCould be yeah14:47:24
@saiko:knifepoint.netKatalin 🔪you might need to modify the proxy port header14:47:27
@matthewcroughan:defenestrate.itmatthewcroughanI've been looking around for examples14:47:31
@matthewcroughan:defenestrate.itmatthewcroughanI think I'll make a minimal icecast example if I ever figure this14:47:38
@matthewcroughan:defenestrate.itmatthewcroughan* I think I'll make a minimal icecast example if I ever figure this ollut14:47:41
@matthewcroughan:defenestrate.itmatthewcroughan* I think I'll make a minimal icecast example if I ever figure this out14:47:43
@saiko:knifepoint.netKatalin 🔪it 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.netKatalin 🔪(Host or X-Forwarded-Host)14:49:27
@matthewcroughan:defenestrate.itmatthewcroughanAnother 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
@matthewcroughan:defenestrate.itmatthewcroughanwe enable http2 on all nginx virtualhosts by default14:50:14
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @matthewcroughan:defenestrate.it
https://icecast.foo.com/stream doesn't work via a nginx proxy, because the stream is not http
But it has to be http, right? Otherwise it won't work for the web client
14:50:14
@n4ch723hr3r:nope.chatn4ch723hr3ri looked up http/3 just now bcs i wondered that as well and found a proprietary fork/wrapper14:50:31
@matthewcroughan:defenestrate.itmatthewcroughanIt isn't, and I don't know why it works14:50:36
@matthewcroughan:defenestrate.itmatthewcroughanI just know that when I proxy it, the client (nginx in that case) gets 502 bad gateway because..14:50:55

Show newer messages


Back to Room ListRoom Version: 6