Add fallback music to icecast server
Some checks failed
Deploy with Docker Compose / deploy (push) Has been cancelled

This commit is contained in:
2026-03-10 12:58:53 +00:00
parent cd1bcc7f39
commit 469a225860
5 changed files with 36 additions and 42 deletions

View File

@@ -1,24 +1,16 @@
[general]
duration = 0 # 0 = run forever
bufferSecs = 5 # buffer size in seconds
reconnect = yes # reconnect on failure
reconnectDelay = 5
settings.server.telnet.set(false)
[input]
device = pulse # PulseAudio input
sampleRate = 44100 # in Hz
bitsPerSample = 16
channel = 2
music = playlist("/music", mode="randomize", reload_mode="watch")
[icecast2-0]
bitrateMode = cbr
bitrate = 128 # kbps
format = mp3
server = ${ICECAST_HOST}
port = ${ICECAST_PORT}
password = ${ICECAST_SOURCE_PASSWORD}
mountPoint = ${ICECAST_MOUNT}
name = "Live DJ stream"
description = "Live microphone stream"
genre = "Various"
public = yes
live = input.harbor("${LIQUIDSOAP_HARBOR_MOUNT}", port=${LIQUIDSOAP_HARBOR_PORT}, password="${ICECAST_SOURCE_PASSWORD}")
radio = fallback(track_sensitive=false, [live, music, blank()])
output.icecast(
%mp3,
host="localhost",
port=${ICECAST_PORT},
password="${ICECAST_SOURCE_PASSWORD}",
mount="${ICECAST_MOUNT}",
radio
)