From 0a2ebf0bdbebee64527d67491e1099122a215ec8 Mon Sep 17 00:00:00 2001 From: paspo Date: Wed, 30 Jul 2025 16:17:45 +0200 Subject: [PATCH] auth file location --- rootfs/app/entrypoint.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rootfs/app/entrypoint.sh b/rootfs/app/entrypoint.sh index f9b457d..f9e7bb6 100755 --- a/rootfs/app/entrypoint.sh +++ b/rootfs/app/entrypoint.sh @@ -3,6 +3,7 @@ WEBROOT=/data/www WEBDAV_PORT=${WEBDAV_PORT:-8080} STATS_PORT=${STATS_PORT:-8081} +LOG_DAYS=${LOG_DAYS:-7} PHP=${PHP:-none} POSTSIZE=${POSTSIZE:-256M} USERNAME=${USERNAME:-theuser} @@ -119,18 +120,19 @@ server { } auth_basic "Restricted area"; - auth_basic_user_file /app/htpasswd; + auth_basic_user_file /data/auth/webdav; } EOF -touch /app/htpasswd +# authentication +mkdir -p /data/auth +touch /data/auth/stats /data/auth/webdav # make sure nginx can log mkdir -p /data/logs /data/stats /data/stats.db chown -R "${USERNAME}:${GROUPNAME}" /data/logs /data/stats /data/stats.db # configure logrotate -LOG_DAYS=${LOG_DAYS:-7} cat >/etc/logrotate.d/nginx <