Changes at the stats analytics

This commit is contained in:
Marc Froehlich
2026-09-14 20:33:50 +02:00
parent 393c9c49ee
commit a3f3bf8872
12 changed files with 1740 additions and 107 deletions
@@ -34,3 +34,10 @@ map "$hamradioonline_analytics_method:$hamradioonline_analytics_path:$hamradioon
default 0;
"1:1:0" 1;
}
# Count the update-information file separately. This deliberately does not
# filter user agents: browsers and bots can fetch the file too.
map "$request_method:$uri:$status" $hamradioonline_update_information_loggable {
default 0;
"GET:/kst4ContestVersionInfo.xml:200" 1;
}
@@ -7,9 +7,10 @@ log_format hamradioonline_analytics
# Include the maps below in the Nginx http context as well.
include /etc/nginx/snippets/hamradioonline-analytics-filters.conf;
# Add this extra log to each registered project server block. Keep the
# Add these extra logs to each registered project server block. Keep the
# existing operational access_log directive; do not replace it implicitly.
#
# access_log /var/log/nginx/kst4contest-analytics.log
# hamradioonline_analytics if=$hamradioonline_analytics_loggable;
# access_log /var/log/nginx/kst4contest-update-information.log
# hamradioonline_analytics if=$hamradioonline_update_information_loggable;