From 05c4e86f4b2a46670f45d3f10fec3fbd5c193a70 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Wed, 7 Jan 2026 21:52:09 +0100 Subject: [PATCH] Add cache logs --- nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;