Persist last 30 days to speed up the load time

This commit is contained in:
quietsy
2022-01-13 14:57:00 +02:00
parent 47ef7daef2
commit cfc46d2a89
3 changed files with 743 additions and 3 deletions
+1 -1
View File
@@ -119,7 +119,7 @@
}
$geodb = file_exists('/config/geoip2db/GeoLite2-City.mmdb') ? '--geoip-database=/config/geoip2db/GeoLite2-City.mmdb' : '';
$access = shell_exec("cat /config/log/nginx/access.log | goaccess -a -o html --html-prefs='{\"theme\":\"darkGray\"}' --log-format COMBINED ".$geodb." -");
$access = shell_exec("goaccess -a -o html --config-file=/dashboard/goaccess.conf ".$geodb);
$status = GetHeader() . GetProxies() . GetF2B() . '<div class="wrap-general">';
echo str_replace("<div class='wrap-general'>", $status, $access);
?>