Update src/nginxconfig/generators/conf/nginx.conf.js
Co-authored-by: Matt (IPv4) Cowley <me@mattcowley.co.uk>
This commit is contained in:
parent
0682218960
commit
30931c4a14
|
@ -114,10 +114,8 @@ export default (domains, global) => {
|
||||||
logging.push('$http_cdn_loop');
|
logging.push('$http_cdn_loop');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (logging.length) {
|
|
||||||
config.http.push(['log_format', `cloudflare '${logging.join(' ')}'`]);
|
config.http.push(['log_format', `cloudflare '${logging.join(' ')}'`]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
config.http.push(['# Logging', '']);
|
config.http.push(['# Logging', '']);
|
||||||
config.http.push(['access_log', (global.logging.accessLog.computed.trim() + (global.logging.cloudflare.computed ? ' cloudflare' : '')) || 'off']);
|
config.http.push(['access_log', (global.logging.accessLog.computed.trim() + (global.logging.cloudflare.computed ? ' cloudflare' : '')) || 'off']);
|
||||||
|
|
Loading…
Reference in New Issue