Skip to content

Commit

Permalink
[Feature] Add NETWORK_INTERFACE for parameter network_interface #22
Browse files Browse the repository at this point in the history
  • Loading branch information
GioF71 committed Mar 7, 2024
1 parent 95aedd5 commit 374f2c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions app/bin/run-minidlna.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 374f2c8

Please # to comment.