From 4c41777823e6358ebd08a5b847ecc889f7af2cf9 Mon Sep 17 00:00:00 2001 From: Glenn Thompson Date: Wed, 1 Oct 2025 21:37:18 +0300 Subject: [PATCH] fix: Clean up main icecast.xml configuration for production use - Add section to fix 'run as root' error - Remove complex mount configurations, let Docker handle automatically - Fix log directory path from /var/log/icecast2/ to /var/log/icecast/ - Update docker-compose.yml to use main icecast.xml instead of minimal version - Remove temporary minimal-icecast.xml workaround file All three streams now working with clean main configuration: - asteroid.aac (96kbps AAC - recommended) - asteroid.mp3 (128kbps MP3 - compatible) - asteroid-low.mp3 (64kbps MP3 - low bandwidth) AAC streaming feature is now production-ready with proper Docker integration. --- docker/docker-compose.yml | 2 +- docker/icecast.xml | 61 ++++----------------------------------- 2 files changed, 6 insertions(+), 57 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index eb985f4..d6b7034 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -5,7 +5,7 @@ services: ports: - "8000:8000" volumes: - - ./icecast.xml:/etc/icecast2/icecast.xml:ro + - ./icecast.xml:/etc/icecast.xml environment: - ICECAST_SOURCE_PASSWORD=H1tn31EhsyLrfRmo - ICECAST_ADMIN_PASSWORD=asteroid_admin_2024 diff --git a/docker/icecast.xml b/docker/icecast.xml index cf2a4d0..5746a35 100644 --- a/docker/icecast.xml +++ b/docker/icecast.xml @@ -26,67 +26,12 @@ 8000 - - /asteroid.mp3 - source - H1tn31EhsyLrfRmo - 100 - /tmp/asteroid-dump.mp3 - 65536 - /silence.mp3 - 1 - 1 - /intro.mp3 - 0 - 1 - Asteroid Radio - Music for Hackers - Streaming from the Asteroid - http://localhost:8080/asteroid/ - Electronic/Alternative - 128 - audio/mpeg - mp3 - - - - /asteroid.aac - source - H1tn31EhsyLrfRmo - 100 - 65536 - 0 - 1 - Asteroid Radio (AAC) - Music for Hackers - High efficiency AAC stream - http://localhost:8080/asteroid/ - Electronic/Alternative - 96 - audio/aac - aac - - - - /asteroid-low.mp3 - source - H1tn31EhsyLrfRmo - 100 - 65536 - 0 - 1 - Asteroid Radio (Low Quality) - Music for Hackers - Low bandwidth stream - http://localhost:8080/asteroid/ - Electronic/Alternative - 64 - audio/mpeg - mp3 - 1 /usr/share/icecast2 - /var/log/icecast2 + /var/log/icecast /usr/share/icecast2/web /usr/share/icecast2/admin @@ -101,5 +46,9 @@ 0 + + icecast + icecast +