mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-04 07:14:22 -04:00
make access.log file configurable via ENV variable
This commit is contained in:
@@ -332,7 +332,7 @@ with-mouse false
|
||||
# Specify the path to the input log file. If set, it will take
|
||||
# priority over -f from the command line.
|
||||
#
|
||||
log-file /config/log/nginx/access.log
|
||||
#log-file /config/log/nginx/access.log
|
||||
|
||||
# Send all debug messages to the specified file.
|
||||
#
|
||||
|
||||
@@ -252,6 +252,7 @@
|
||||
$geodb = '';
|
||||
endif;
|
||||
|
||||
$access_log = getenv("GOACCESS_LOG_FILE") ?: "/config/log/nginx/access.log";
|
||||
$goaccess = shell_exec("/usr/local/bin/goaccess -a -o html --config-file=/dashboard/goaccess.conf ".$geodb);
|
||||
$goaccess = str_replace("<title>Server Statistics", "<title>SWAG Dashboard", $goaccess);
|
||||
$goaccess = str_replace("<h1 class='h-dashboard'>", "<h1>", $goaccess);
|
||||
|
||||
Reference in New Issue
Block a user