diff --git a/deploy/nginx/nginx.conf b/deploy/nginx/nginx.conf index 71060e1..61902db 100644 --- a/deploy/nginx/nginx.conf +++ b/deploy/nginx/nginx.conf @@ -25,7 +25,13 @@ http { '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; - access_log /data/log/nginx_access.log main; + map $request $loggable { + default 1; + "~*^POST /api/judge_server_heartbeat/ HTTP/1\.1$" 0; + } + + access_log /data/log/nginx_access.log main if=$loggable; + # access_log off; upstream backend { server 127.0.0.1:8080;