SSL encryption for streaming #2

Open
opened 2024-01-09 02:34:24 +00:00 by 3wordchant · 4 comments
Owner

Currently, streaming has to be done unencrypted.

Icecast supports its own TLS encryption, which would be possible using traefik-cert-dumper, but annoying.

An alternative would be to get everything routed through Traefik; see #1

Currently, streaming has to be done unencrypted. Icecast supports its own TLS encryption, which would be possible using `traefik-cert-dumper`, but annoying. An alternative would be to get everything routed through Traefik; see #1
3wordchant added the
enhancement
help wanted
labels 2024-01-09 02:34:24 +00:00
Author
Owner

It's Fine, Actually? See #1

It's Fine, Actually? See #1
Author
Owner

It's not fine :( Streaming was cutting out every ~10 seconds as reported here: https://community.traefik.io/t/icecast-services-behind-traefik/8679/7

Bypassing Traefik SSL seems to work OK though.

It's not fine :( Streaming was cutting out every ~10 seconds as reported here: https://community.traefik.io/t/icecast-services-behind-traefik/8679/7 Bypassing Traefik SSL seems to work OK though.
Owner

When I configured Nginx as a reverse proxy for Icecast I had to proxy it using HTTP/1.0 and disable chunking, otherwise it wouldn't behave as a stream on browsers. I don't remember if I got to reverse proxy the streamer, but I do remember it uses a non-standard HTTP verb, which reverse proxies don't recognize. Maybe it can be set as TCP reverse proxy instead of HTTP on Traefik?

location ~ \.(ogg|xsl)$ {
  proxy_pass http://localhost:8000;
  proxy_buffering off;
  proxy_http_version 1.0;

# http://stackoverflow.com/questions/17952258/http-request-to-icecast-and-response                                                      
  chunked_transfer_encoding off;
  keepalive_requests 0;
  expires off;
}  
When I configured Nginx as a reverse proxy for Icecast I had to proxy it using HTTP/1.0 and disable chunking, otherwise it wouldn't behave as a stream on browsers. I don't remember if I got to reverse proxy the streamer, but I do remember it uses a non-standard HTTP verb, which reverse proxies don't recognize. Maybe it can be set as TCP reverse proxy instead of HTTP on Traefik? ```nginx location ~ \.(ogg|xsl)$ { proxy_pass http://localhost:8000; proxy_buffering off; proxy_http_version 1.0; # http://stackoverflow.com/questions/17952258/http-request-to-icecast-and-response chunked_transfer_encoding off; keepalive_requests 0; expires off; } ```
Owner

I skimmed through #1 and realized my advice may be outdated, but I can ask friends how they're doing :P

I skimmed through #1 and realized my advice may be outdated, but I can ask friends how they're doing :P
Sign in to join this conversation.
No description provided.