X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fnginx%2Fnginx.conf;h=70aed2cf0913e91790c8f77fdaee2bcf3c95a5cb;hb=79e0b7a296172977c2c1e53bd27517c4f5039dd2;hp=ad979c3a479c892e89a6f5db78d11ccf91e48a80;hpb=a60a77e4b97f276d26b53e2b94561ab70083e986;p=lhc%2Fateliers.git diff --git a/etc/nginx/nginx.conf b/etc/nginx/nginx.conf index ad979c3..70aed2c 100644 --- a/etc/nginx/nginx.conf +++ b/etc/nginx/nginx.conf @@ -9,6 +9,16 @@ http { '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; + log_format piwik + '{"ip": "$remote_addr",' + '"host": "$host",' + '"path": "$request_uri",' + '"status": "$status",' + '"referrer": "$http_referer",' + '"user_agent": "$http_user_agent",' + '"length": $bytes_sent,' + '"generation_time_milli": $request_time,' + '"date": "$time_iso8601"}'; access_log /var/log/nginx/access.log main buffer=32k; client_body_buffer_size 4K; # NOTE: % getconf PAGESIZE