Add cache logs
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user