diff options
author | jaseg <code@jaseg.net> | 2019-06-27 11:57:45 +0900 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2019-06-27 11:57:45 +0900 |
commit | 0ada527f0b0e8400253407b78a25d8fbadbe726b (patch) | |
tree | f84a23a09f845f1271d9ff9220f86a72e2145120 | |
parent | 8cb082a42d71a1e86a138eb58106d636e7c6d191 (diff) | |
download | gerbolyze-0ada527f0b0e8400253407b78a25d8fbadbe726b.tar.gz gerbolyze-0ada527f0b0e8400253407b78a25d8fbadbe726b.tar.bz2 gerbolyze-0ada527f0b0e8400253407b78a25d8fbadbe726b.zip |
Limit logging of secure download requests
-rw-r--r-- | gerboweb/deploy/nginx.conf | 2 | ||||
-rw-r--r-- | gerboweb/deploy/uwsgi-secure-download.ini | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/gerboweb/deploy/nginx.conf b/gerboweb/deploy/nginx.conf index 1f44981..b6f13c0 100644 --- a/gerboweb/deploy/nginx.conf +++ b/gerboweb/deploy/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/gerboweb/deploy/uwsgi-secure-download.ini b/gerboweb/deploy/uwsgi-secure-download.ini index 5f999fc..4a4aa65 100644 --- a/gerboweb/deploy/uwsgi-secure-download.ini +++ b/gerboweb/deploy/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 |