From 8ff8f6a2cb7ac39c5a38829046d0efc9846eae6b Mon Sep 17 00:00:00 2001 From: Luca Zorzi Date: Sat, 2 Jan 2021 20:20:07 +0100 Subject: [PATCH 1/2] Added support for adding custom parameters to icecast.xml --- docker-entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 2409502..7756ae1 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -28,4 +28,9 @@ if [ -n "$ICECAST_MAX_SOURCES" ]; then sed -i "s/[^<]*<\/sources>/$ICECAST_MAX_SOURCES<\/sources>/g" /etc/icecast.xml fi +if [ -n "$ICECAST_EXTRA_PARAMETERS" ]; then + sed -i "s/<\/icecast>//" /etc/icecast.xml + + echo "$ICECAST_EXTRA_PARAMETERS" >> /etc/icecast.xml +fi exec "$@" From e0e21a5651d8c271a9ec08f38dbe517003858927 Mon Sep 17 00:00:00 2001 From: Luca Zorzi Date: Sat, 2 Jan 2021 20:21:41 +0100 Subject: [PATCH 2/2] Updated readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 83e045d..0c0b4d7 100644 --- a/README.md +++ b/README.md @@ -10,5 +10,5 @@ Supported ENV variables: ICECAST_SOURCE_PASSWORD, ICECAST_ADMIN_PASSWORD, ICECAST_RELAY_PASSWORD ICECAST_ADMIN_USERNAME, ICECAST_ADMIN_EMAIL ICECAST_LOCATION, ICECAST_HOSTNAME -ICECAST_MAX_CLIENTS, ICECAST_MAX_SOURCES +ICECAST_MAX_CLIENTS, ICECAST_MAX_SOURCES, ICECAST_EXTRA_PARAMETERS ```