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; } }