Amélioration de la gestion des logs

This commit is contained in:
Jean-Marie Favreau
2025-04-28 10:50:08 +02:00
parent 2a99fec997
commit 89092a1c28
4 changed files with 11 additions and 5 deletions

View File

@@ -12,5 +12,5 @@ else
python manage.py migrate --noinput
python manage.py collectstatic --noinput
python manage.py compilemessages
gunicorn "$APP_NAME".wsgi:application --bind "$APP_HOST":"$APP_PORT" --workers 3 --log-level=info
gunicorn "$APP_NAME".wsgi:application --bind "$APP_HOST":"$APP_PORT" --workers 5 --log-level=info
fi

View File

@@ -35,9 +35,11 @@ http {
error_page 502 /static/html/502.html;
error_page 503 /static/html/503.html;
if ($http_user_agent ~* "Amazonbot|meta-externalagent|ClaudeBot|ahrefsbot|semrushbot") {
return 444;
}
if ($http_user_agent ~* "Amazonbot|meta-externalagent|ClaudeBot|ahrefsbot|semrushbot") {
return 444;
}
}
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log warn;
}