From c45493a73ec933f85ea69fb7aefa7212361844cb Mon Sep 17 00:00:00 2001 From: Giovanni Fulco Date: Thu, 7 Mar 2024 14:12:02 +0100 Subject: [PATCH] [Feature] Add NETWORK_INTERFACE for parameter `network_interface` #22 (#23) --- Dockerfile | 1 + README.md | 1 + app/bin/run-minidlna.sh | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 00a3948..dd17451 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,6 +42,7 @@ VOLUME /db VOLUME /log ENV MINIDLNA_PORT "8200" +ENV MINIDLNA_NETWORK_INTERFACE "" ENV MINIDLNA_FRIENDLY_NAME "" ENV MINIDLNA_DIR_A_1 "" diff --git a/README.md b/README.md index 5383244..93e1ccb 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ Getting the image from DockerHub is as simple as typing: Name|Description :---|:--- MINIDLNA_PORT|Web Interface Port, defaults to `8200` +MINIDLNA_NETWORK_INTERFACE|Network interfaces to serve, comma delimited; maximum is 8 interfaces, defaults to all MINIDLNA_FRIENDLY_NAME|Defaults to `hostname: username` MINIDLNA_SERIAL|Serial number the server reports to clients. Defaults to the MAC address of nework interface MINIDLNA_MODEL_NAME|Model name the server reports to clients diff --git a/app/bin/run-minidlna.sh b/app/bin/run-minidlna.sh index b06625f..845b04a 100755 --- a/app/bin/run-minidlna.sh +++ b/app/bin/run-minidlna.sh @@ -60,6 +60,10 @@ fi echo "port=$MINIDLNA_PORT" >> $CONFIG_FILE +if [ -n "${MINIDLNA_NETWORK_INTERFACE}" ]; then + echo "network_interface=${MINIDLNA_NETWORK_INTERFACE}" >> $CONFIG_FILE +fi + if [ -n "${MINIDLNA_FRIENDLY_NAME}" ]; then echo "friendly_name=${MINIDLNA_FRIENDLY_NAME}" >> $CONFIG_FILE fi