From 6f1e525c3a67db6dbdd06e2d61c962ad40f90b06 Mon Sep 17 00:00:00 2001 From: theo Date: Sat, 14 Mar 2026 09:45:14 +0100 Subject: [PATCH] Remove access log --- nginx.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index c906505..9699e26 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,7 +1,11 @@ server { listen 80; - root /usr/share/nginx/html; - index index.html; + + # Désactiver les logs d'accès (vie privée) + access_log off; + + # Garder uniquement les erreurs + error_log /var/log/nginx/error.log warn; location /api/ { proxy_pass http://backend:8000/api/; @@ -10,6 +14,7 @@ server { } location / { + root /usr/share/nginx/html; try_files $uri $uri/ /index.html; } }