Browse Source

feat: show nginx log to stdout

master
Dnomd343 2 years ago
parent
commit
16d5b79baa
  1. 4
      nginx/nginx.conf

4
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;
}

Loading…
Cancel
Save