From 542658d73ecf2914e9a45641cf9fc29a2fb888e1 Mon Sep 17 00:00:00 2001 From: Roman Vanicek Date: Thu, 26 Oct 2023 14:42:19 +0200 Subject: [PATCH] Customizable HTTP port to listen on --- files/entrypoint.sh | 1 + files/lighttpd.conf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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"