From ca5e86bf9028d5c7324aad862d1bcfb1e201a3ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Will=20=E4=BF=9D=E5=93=A5?= Date: Tue, 22 Nov 2022 01:27:44 +0800 Subject: [PATCH] Fixed for cloudflare logformat --- src/nginxconfig/util/logging.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nginxconfig/util/logging.js b/src/nginxconfig/util/logging.js index 5b493d7..bdf0e34 100644 --- a/src/nginxconfig/util/logging.js +++ b/src/nginxconfig/util/logging.js @@ -25,7 +25,7 @@ THE SOFTWARE. */ export const accessLogPathDefault = '/var/log/nginx/access.log'; -export const accessLogParamsDefault = 'combined buffer=512k flush=1m'; +export const accessLogParamsDefault = 'buffer=512k flush=1m'; export const errorLogPathDefault = '/var/log/nginx/error.log'; export const errorLogPathDisabled = '/dev/null'; @@ -40,7 +40,7 @@ export const getDomainAccessLog = (domain, global) => { } return path + - (global.logging.cloudflare.computed ? ' cloudflare' : '') + + (global.logging.cloudflare.computed ? ' cloudflare' : ' combined') + (domain.logging.accessLogParameters.computed.trim() ? ` ${domain.logging.accessLogParameters.computed.trim()}`: ''); };