From d9a77798b0d5de767d109e15397fdf5cf6f76974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Will=20=E4=BF=9D=E5=93=A5?= Date: Tue, 22 Nov 2022 07:19:03 +0800 Subject: [PATCH] Set 'combined' as default log format when not using Cloudflare (#410) * Fix the accessLogParamsDefault issue This fixes #409 * Fixed for cloudflare logformat Co-authored-by: Matt Cowley --- src/nginxconfig/util/logging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nginxconfig/util/logging.js b/src/nginxconfig/util/logging.js index 4709121..bdf0e34 100644 --- a/src/nginxconfig/util/logging.js +++ b/src/nginxconfig/util/logging.js @@ -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()}`: ''); };