X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fnginx%2Fnginx.conf;fp=etc%2Fnginx%2Fnginx.conf;h=70aed2cf0913e91790c8f77fdaee2bcf3c95a5cb;hb=92a5935610761f7096410ddeb078e1e872e5c732;hp=ad979c3a479c892e89a6f5db78d11ccf91e48a80;hpb=72a6089daa89de50eed53d1e7ce8d8ce02514946;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