Compare commits
No commits in common. "09edb0a8e69dc302d3d7372f40ab07c9cc2157a5" and "1920ad9c6629861b1fd7d4ecfc3cb6f6ba5695fd" have entirely different histories.
09edb0a8e6
...
1920ad9c66
|
|
@ -5,7 +5,7 @@ COPY icecast-entrypoint.sh /usr/local/bin/icecast-entrypoint.sh
|
|||
RUN chmod +x /usr/local/bin/icecast-entrypoint.sh
|
||||
|
||||
# Copy base config and YP snippet
|
||||
COPY icecast-base.xml /etc/icecast-base.xml
|
||||
COPY icecast-yp-snippet.xml /etc/icecast-yp-snippet.xml
|
||||
COPY icecast.xml.base /etc/icecast.xml.base
|
||||
COPY icecast-yp.xml.snippet /etc/icecast-yp.xml.snippet
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/icecast-entrypoint.sh"]
|
||||
|
|
|
|||
|
|
@ -25,9 +25,6 @@ settings.server.telnet.set(true)
|
|||
settings.server.telnet.port.set(1234)
|
||||
settings.server.telnet.bind_addr.set("0.0.0.0")
|
||||
|
||||
# Station URL for YP directory listings (defaults to localhost for dev)
|
||||
station_url = environment.get("STATION_URL") ?? "http://localhost:8080/asteroid/"
|
||||
|
||||
# =============================================================================
|
||||
# CURATED STREAM (Low Orbit) - Sequential playlist
|
||||
# =============================================================================
|
||||
|
|
@ -86,7 +83,7 @@ output.icecast(
|
|||
name="Asteroid Radio",
|
||||
description="Music for Hackers - Streaming from the Asteroid",
|
||||
genre="Electronic/Alternative",
|
||||
url=station_url,
|
||||
url="http://localhost:8080/asteroid/",
|
||||
public=true,
|
||||
radio
|
||||
)
|
||||
|
|
@ -101,7 +98,7 @@ output.icecast(
|
|||
name="Asteroid Radio (AAC)",
|
||||
description="Music for Hackers - High efficiency AAC stream",
|
||||
genre="Electronic/Alternative",
|
||||
url=station_url,
|
||||
url="http://localhost:8080/asteroid/",
|
||||
public=true,
|
||||
radio
|
||||
)
|
||||
|
|
@ -116,7 +113,7 @@ output.icecast(
|
|||
name="Asteroid Radio (Low Quality)",
|
||||
description="Music for Hackers - Low bandwidth stream",
|
||||
genre="Electronic/Alternative",
|
||||
url=station_url,
|
||||
url="http://localhost:8080/asteroid/",
|
||||
public=true,
|
||||
radio
|
||||
)
|
||||
|
|
@ -162,7 +159,7 @@ output.icecast(
|
|||
name="Asteroid Radio (Shuffle)",
|
||||
description="Music for Hackers - Random shuffle from the library",
|
||||
genre="Electronic/Alternative",
|
||||
url=station_url,
|
||||
url="http://localhost:8080/asteroid/",
|
||||
public=true,
|
||||
shuffle_radio
|
||||
)
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ services:
|
|||
- ICECAST_ADMIN_PASSWORD=asteroid_admin_2024
|
||||
- ICECAST_RELAY_PASSWORD=asteroid_relay_2024
|
||||
- ICECAST_ENABLE_YP=${ICECAST_ENABLE_YP:-false}
|
||||
- ICECAST_HOSTNAME=${ICECAST_HOSTNAME:-localhost}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- asteroid-network
|
||||
|
|
@ -25,8 +24,6 @@ services:
|
|||
- "127.0.0.1:1234:1234"
|
||||
depends_on:
|
||||
- icecast
|
||||
environment:
|
||||
- STATION_URL=${STATION_URL:-http://localhost:8080/asteroid/}
|
||||
volumes:
|
||||
- ${MUSIC_LIBRARY:-../music/library}:/app/music:ro
|
||||
- ./asteroid-radio-docker.liq:/app/asteroid-radio.liq:ro
|
||||
|
|
|
|||
|
|
@ -21,8 +21,3 @@ export ASTEROID_DB_PASSWORD=asteroid_db_2025
|
|||
# Production should set this to the public hostname
|
||||
# Dev defaults to 'localhost' if unset
|
||||
# export ICECAST_HOSTNAME=ice.asteroid.radio
|
||||
|
||||
# Station URL (shown in YP directory listings as the station website)
|
||||
# This is what listeners click to visit the station
|
||||
# Dev defaults to 'http://localhost:8080/asteroid/'
|
||||
# export STATION_URL=https://asteroid.radio
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
# - Substitute hostname (defaults to localhost for dev)
|
||||
# - If ICECAST_ENABLE_YP=true, insert YP directory blocks
|
||||
|
||||
cp /etc/icecast-base.xml /etc/icecast.xml
|
||||
cp /etc/icecast.xml.base /etc/icecast.xml
|
||||
|
||||
# Set hostname (defaults to localhost if not specified)
|
||||
ICECAST_HOSTNAME=${ICECAST_HOSTNAME:-localhost}
|
||||
|
|
@ -14,11 +14,7 @@ sed -i "s|<hostname>localhost</hostname>|<hostname>$ICECAST_HOSTNAME</hostname>|
|
|||
if [ "$ICECAST_ENABLE_YP" = "true" ]; then
|
||||
echo "YP directory publishing ENABLED"
|
||||
# Insert YP config before closing </icecast> tag
|
||||
# Use sed with a temp file to handle multi-line insertion
|
||||
head -n -1 /etc/icecast.xml > /tmp/icecast-temp.xml
|
||||
cat /etc/icecast-yp-snippet.xml >> /tmp/icecast-temp.xml
|
||||
echo "</icecast>" >> /tmp/icecast-temp.xml
|
||||
mv /tmp/icecast-temp.xml /etc/icecast.xml
|
||||
sed -i 's|</icecast>|'"$(cat /etc/icecast-yp.xml.snippet)"'\n</icecast>|' /etc/icecast.xml
|
||||
else
|
||||
echo "YP directory publishing DISABLED (dev mode)"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue