diff --git a/files/entrypoint.sh b/files/entrypoint.sh index e9f5939..e374c1f 100644 --- a/files/entrypoint.sh +++ b/files/entrypoint.sh @@ -5,6 +5,7 @@ BACKUPPC_UUID="${BACKUPPC_UUID:-1000}" BACKUPPC_GUID="${BACKUPPC_GUID:-1000}" BACKUPPC_USERNAME=$(getent passwd "$BACKUPPC_UUID" | cut -d: -f1) BACKUPPC_GROUPNAME=$(getent group "$BACKUPPC_GUID" | cut -d: -f1) +BACKUPPC_PORT="${BACKUPPC_PORT:-80}" if [ -f /firstrun ]; then echo 'First run of the container. BackupPC will be installed.' diff --git a/files/lighttpd.conf b/files/lighttpd.conf index 977a68e..b5006a4 100644 --- a/files/lighttpd.conf +++ b/files/lighttpd.conf @@ -1,4 +1,4 @@ -server.port = 80 +server.port = env.BACKUPPC_PORT server.username = env.BACKUPPC_USERNAME server.groupname = env.BACKUPPC_GROUPNAME server.document-root = "/srv/http"