diff --git a/nginx.conf b/nginx.conf index 3a7ac24..bb347fe 100644 --- a/nginx.conf +++ b/nginx.conf @@ -12,7 +12,9 @@ http { proxy_cache_path /etc/nginx/data/cache levels=1:2 keys_zone=api_cache:10m max_size=100g inactive=365d; error_log /dev/stdout warn; - access_log /dev/stdout; + + log_format main '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" cache:$upstream_cache_status'; + access_log /dev/stdout main; resolver 127.0.0.11 valid=60s;