FIX #4: added DISABLE_STATS flag and moved stats refresh in a dedicated script

This commit is contained in:
2025-07-31 15:43:47 +02:00
parent 8d534bfd9b
commit b8c4e51fbe
5 changed files with 23 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ ${PATH_LOGS}/nginx-access.log {
su ${USERNAME} ${GROUPNAME}
postrotate
/usr/sbin/nginx -s reopen
nice -n 19 /usr/bin/goaccess ${PATH_LOGS}/nginx-access.log.1 --agent-list --anonymize-ip --real-os --exclude-ip 127.0.0.1 --output ${PATH_STATS}/index.html --log-format COMBINED --tz="${TZ}" --db-path=${PATH_STATSDB} --persist --restore
nice -n 19 /app/stats.sh
endscript
}
EOF