From 54944fcd3d8e480d57b389a6518db4952e89f49e Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 27 Jun 2019 11:57:45 +0900 Subject: Limit logging of secure download requests --- nginx.conf | 2 ++ uwsgi-secure-download.ini | 1 + 2 files changed, 3 insertions(+) diff --git a/nginx.conf b/nginx.conf index 1f44981..b6f13c0 100644 --- a/nginx.conf +++ b/nginx.conf @@ -118,6 +118,8 @@ http { } location /d/ { + access_log off; + log_not_found off; rewrite ^/d/(.*)$ /$1 break; include uwsgi_params; uwsgi_pass unix:/run/uwsgi/secure-download.socket; diff --git a/uwsgi-secure-download.ini b/uwsgi-secure-download.ini index 5f999fc..4a4aa65 100644 --- a/uwsgi-secure-download.ini +++ b/uwsgi-secure-download.ini @@ -3,6 +3,7 @@ master = True cheap = True die-on-idle = False manage-script-name = True +log-format = [pid: %(pid)|app: -|req: -/-] %(addr) (%(user)) {%(vars) vars in %(pktsize) bytes} [%(ctime)] %(method) [URI hidden] => generated %(rsize) bytes in %(msecs) msecs (%(proto) %(status)) %(headers) headers in %(hsize) bytes (%(switches) switches on core %(core)) plugins = python3 chdir = /var/lib/secure_download mount = /=server:app -- cgit