Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
5 changes: 5 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ if [ -n "$ICECAST_MAX_SOURCES" ]; then
sed -i "s/<sources>[^<]*<\/sources>/<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</icecast>" >> /etc/icecast.xml
fi
exec "$@"