Castopod y su problema con el streaming

Buena plataforma, pero tiene sus fallos.

Castopod y su problema con el streaming

Nuestro podcast dedicado a la Fórmula 1 se publica, desde hace unos meses, con Castopod. Se trata de una plataforma integral para subir y distribuir podcasts de forma sencilla, pero tiene un gran fallo y te cuento cómo solucionarlo.

Castopod | Your Free & Open-source Podcast Host
Castopod is a free and open-source hosting platform made for podcasters. Engage and interact with your audience whilst keeping control over your content.

Sidecar (docker):

# --------------------
# CASTOPOD SIDECAR
# --------------------
  castopod_sidecar:
    image: nginx:alpine
    container_name: Castopod_Sidecar
    hostname: Castopod_Sidecar
    restart: unless-stopped
    networks:
      - principal
    volumes:
      - ./nginx-static.conf:/etc/nginx/nginx.conf:ro
      - ./mp3:/var/www/castopod/public/media/podcasts:ro

Configuración nginx:

events {
    worker_connections 1024;
}

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;
    
    sendfile        on;
    tcp_nopush      on;
    tcp_nodelay     on;
    keepalive_timeout  65;

    server {
        listen 80;
        server_name _;

        # Raíz del servidor: debe coincidir con la estructura interna de Castopod
        root /var/www/castopod/public;

        # Solo nos interesa servir /media. Lo demás da igual.
        location /media/ {
            try_files $uri $uri/ =404;
            expires 7d;
            add_header Cache-Control "public, no-transform";
            gzip off;
            autoindex off;
            aio threads;
            access_log off;
        }
    }
}