diff --git a/nginx.conf b/nginx.conf index 75aac7b..93bf762 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,6 +1,7 @@ user nginx; worker_processes auto; pcre_jit on; +load_module /usr/lib/nginx/modules/ngx_stream_module.so; events { worker_connections 768; } @@ -38,8 +39,11 @@ http { } stream { # logging - access_log access.log; - error_log error.log; + log_format basic '$remote_addr:$remote_port - $time_local ' + '$protocol stat:$status bs:$bytes_sent br:$bytes_received ' + st:'$session_time'; + access_log access.log basic; + error_log error.log basic; # include stream include stream/*.conf;