From 16d5b79baae6a3d26eec37d5238c22c08f1539c8 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 29 Oct 2022 13:37:32 +0800 Subject: [PATCH] feat: show nginx log to stdout --- nginx/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 9270db3..bedb115 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,8 +1,8 @@ user nginx; pcre_jit on; pid /run/nginx.pid; - worker_processes auto; +error_log /dev/stdout warn; include /etc/nginx/modules/*.conf; events { @@ -12,7 +12,7 @@ events { http { log_format access '[$time_iso8601] $remote_addr -> $scheme://$host - "$request"' ' -> ($status) ↑$request_length ↓$bytes_sent {$http_user_agent}'; - access_log /var/log/nginx/access.log access; + access_log /dev/stdout access; include /etc/nginx/mime.types; include /etc/nginx/kms.conf; }