On supprime les logs nginx dans la console
This commit is contained in:
		@@ -8,6 +8,9 @@ http {
 | 
			
		||||
    gzip on;
 | 
			
		||||
    gzip_types text/plain text/css text/javascript;
 | 
			
		||||
 | 
			
		||||
    log_format main 'remote_addr -remote_user [time_local] "request" '
 | 
			
		||||
                'statusbody_bytes_sent "http_referer" '
 | 
			
		||||
                '"http_user_agent" "$http_x_forwarded_for"';
 | 
			
		||||
 | 
			
		||||
    upstream backend {
 | 
			
		||||
        server backend:8000;
 | 
			
		||||
@@ -38,8 +41,8 @@ http {
 | 
			
		||||
        if ($http_user_agent ~* "Amazonbot|meta-externalagent|ClaudeBot|ahrefsbot|semrushbot") {
 | 
			
		||||
            return 444;
 | 
			
		||||
        }
 | 
			
		||||
        access_log  /var/log/nginx/access.log main;
 | 
			
		||||
        error_log   /var/log/nginx/error.log warn;
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
    access_log  /var/log/nginx/access.log;
 | 
			
		||||
    error_log   /var/log/nginx/error.log warn;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user