Skip to content

Commit

Permalink
handles api errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ironicbadger committed Dec 26, 2024
1 parent f9e4fdd commit 235533c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ 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;
}

error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
Expand Down

0 comments on commit 235533c

Please # to comment.