From ea757d484f6fc14e05473e512d99b190a2b409bc Mon Sep 17 00:00:00 2001 From: David Jennes Date: Wed, 3 Jul 2024 04:23:36 +0200 Subject: [PATCH] Nginx: ensure we log accesses --- common/config/nginx/nginx.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/config/nginx/nginx.conf b/common/config/nginx/nginx.conf index e9496c0..25e842e 100644 --- a/common/config/nginx/nginx.conf +++ b/common/config/nginx/nginx.conf @@ -24,8 +24,11 @@ http { uwsgi_temp_path /tmp/uwsgi_temp; scgi_temp_path /tmp/scgi_temp; + log_format main '$remote_addr "$request" $status $body_bytes_sent ' + "$http_referer" "$http_user_agent" "$http_x_forwarded_for"'; + # Performance - access_log off; + access_log /dev/stdout main; tcp_nopush on; tcp_nodelay on; reset_timedout_connection on;