diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 3ea1097..b3c055d 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -8,12 +8,11 @@ server { index index.html index.htm; } - # Option 1: More detailed analytics handling - location /api/ { - # Log analytics attempts without errors - access_log /var/log/nginx/analytics.log; - error_log /dev/null; - return 204; + # Add this block to handle Material for MkDocs API events + location /api/event { + access_log off; # Don't log these requests + error_log /dev/null; # Don't log errors for these requests + return 204; # Return "No Content" status } error_page 404 /404.html;