From dfdea84bf7d51262ab81bfbd2ca5898f10ea6f6e Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 31 Jul 2025 16:16:02 +0200 Subject: [PATCH] fix #9: stats doesn't need a separate server --- README.md | 2 -- rootfs/app/entrypoint.sh | 2 -- rootfs/app/entrypoint.sh.d/90_stats.sh | 21 +++------------------ 3 files changed, 3 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index bfbf676..0ea444f 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,6 @@ services: image: docker.asperti.com/paspo/webserver-nginx ports: - 8888:80 # web server - - 8889:8081 # stats page - 8890:8080 # webdav access - 2222:22 # sftp access volumes: @@ -21,7 +20,6 @@ services: environment: LOG_DAYS: 14 # default 7 WEBDAV_PORT: 8080 # default: 8080 - STATS_PORT: 8081 # default: 8081 PHP: php84 # none (default), php82, php83, php84 POSTSIZE: 256M # default: 256M PUID: 1000 # default: 1000 diff --git a/rootfs/app/entrypoint.sh b/rootfs/app/entrypoint.sh index 48da9b1..6df8d1f 100755 --- a/rootfs/app/entrypoint.sh +++ b/rootfs/app/entrypoint.sh @@ -9,7 +9,6 @@ PATH_AUTH=${PATH_BASE}/auth PATH_SSH_HOST=${PATH_BASE}/ssh WEBDAV_PORT=${WEBDAV_PORT:-8080} -STATS_PORT=${STATS_PORT:-8081} LOG_DAYS=${LOG_DAYS:-7} PHP=${PHP:-none} @@ -38,7 +37,6 @@ export PATH_LOGS export PATH_AUTH export PATH_SSH_HOST export WEBDAV_PORT -export STATS_PORT export POSTSIZE export LOG_DAYS export PHP diff --git a/rootfs/app/entrypoint.sh.d/90_stats.sh b/rootfs/app/entrypoint.sh.d/90_stats.sh index b9717e1..a913d07 100755 --- a/rootfs/app/entrypoint.sh.d/90_stats.sh +++ b/rootfs/app/entrypoint.sh.d/90_stats.sh @@ -12,26 +12,11 @@ touch "${PATH_AUTH}/stats" chown -R "${USERNAME}:${GROUPNAME}" "${PATH_AUTH}" "${PATH_STATS}" "${PATH_STATSDB}" # stats endpoint -cat > /etc/nginx/http.d/stats.conf < /etc/nginx/local.d/stats.conf <