diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 18a9ab3..1934bbe 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -167,8 +167,26 @@ http { '"document_root":"$document_root",' '"realpath_root":"$realpath_root",' '"request_filename":"$request_filename",' + + # Headers da Requisição + '"http_referer":"$http_referer",' + '"http_user_agent":"$http_user_agent",' + '"http_cookie":"$http_cookie",' + '"http_accept_encoding":"$http_accept_encoding",' + '"http_accept_language":"$http_accept_language",' - + # Detalhes da Resposta + '"status":$status,' + '"body_bytes_sent":$body_bytes_sent,' + '"bytes_sent":$bytes_sent,' + '"sent_http_server":"$sent_http_server",' + '"sent_http_date":"$sent_http_date",' + '"sent_http_location":"$sent_http_location",' + '"sent_http_content_type":"$sent_http_content_type",' + '"sent_http_content_encoding":"$sent_http_content_encoding",' + '"sent_http_cache_control":"$sent_http_cache_control",' + '"sent_http_content_security_policy":"$sent_http_content_security_policy",' + '"sent_http_x_frame_options":"$sent_http_x_frame_options",' '}'; log_format suspicious_bot 'SUSPICIOUS_BOT: $remote_addr - "$http_user_agent" - "$request"';