move error_log configuration to top level

This commit is contained in:
Daniel Micay 2023-02-11 04:07:55 -05:00
parent 4540f10175
commit 8f673908ef

View File

@ -2,6 +2,8 @@
load_module modules/ngx_http_brotli_static_module.so; load_module modules/ngx_http_brotli_static_module.so;
error_log syslog:server=unix:/dev/log,nohostname;
worker_processes auto; worker_processes auto;
worker_rlimit_nofile 16384; worker_rlimit_nofile 16384;
@ -68,7 +70,6 @@ http {
'$host "$request_uri" $status $request_length $body_bytes_sent/$bytes_sent ' '$host "$request_uri" $status $request_length $body_bytes_sent/$bytes_sent '
'$request_time "$http_referer" "$http_user_agent"'; '$request_time "$http_referer" "$http_user_agent"';
access_log syslog:server=unix:/dev/log,nohostname main; access_log syslog:server=unix:/dev/log,nohostname main;
error_log syslog:server=unix:/dev/log,nohostname;
log_not_found off; log_not_found off;
gzip_proxied any; gzip_proxied any;